Click or drag to resize

IndexedMonoBehaviour Methods

The IndexedMonoBehaviour type exposes the following members.

Methods
  NameDescription
Public methodAssignNewDynamicIndex
Assign a new index ot this object. Specifying an index < 0 means we will calculate the new index manually. Note that it is up to you to ensure that corresponding objects on other networked client have the correct indeces otherwise messages will not go to the right place and will be lost.
Protected methodAwake
Unity component method
Public methodStatic memberGenerateDefaultGUIDWith
Generates a MessageID using ImmerseSDK.GUID.OwnerTypes.Scene and UserID.Empty, which are the default values for an IndexedMonoBehaviour
Public methodGetMetadata
Populate the scene metadata with the metadata of this object
Protected methodLogIndexInfo
Log the index information to the console
Protected methodOnDestroy
Unity component method
Public methodSetGUID
Set a new GUID for this object
Protected methodStart
Unity component method
Public methodTryToRegisterIndex
Register the index for this object, or if scene is not ready, wait for it to become ready and try again
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodGetObjectIndex
Gets the index from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwner
Gets the owner id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetOwnerType
Gets the owner type from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodGetScene
Gets the scene id from the IndexedMonoBehaviour
(Defined by GUID.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also