Img

Cross Scene Refs

Description

Allows to make ref to object in other scene like link this scene [exit Portal] to [enter Portal] on other scene

Set of classes that make ScrossSceneRef work

CrossSceneRef : MonoBehaviour

Auto generate and Store UniversalIdentifier Uid for this object
It is unique is scene

Properties

PropertyDescription
UidAuto generated unique id of object

CrossSceneRefs

Global store of live Cross Scene Refs

Methods

MethodsDescription
Get < T >Get T Component from referenced object or throw
Find < T >Find T Component from referenced object or null

CrossSceneRef< T >

Serializable Struct to use as filed on your MonboBehaviours to reference objects in other scenes

Properties

PropertyDescription
UisGet T Component from referenced object or throw
SceneSceneRef where ref Target lies
IsNonereturn true if ref is empty
NoneNone Ref to compare

Methods

MethodsDescription
GetGet T Component from referenced object or throw
FindFind T Component from referenced object or null