IndexedMonoBehaviour Class |
Namespace: ImmerseSDK.Indexing
public abstract class IndexedMonoBehaviour : LoggingBehaviour, IIndexed
The IndexedMonoBehaviour type exposes the following members.
Name | Description | |
---|---|---|
IndexedMonoBehaviour | Initializes a new instance of the IndexedMonoBehaviour class |
Name | Description | |
---|---|---|
AssignNewDynamicIndex |
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.
| |
Awake |
Unity component method
| |
GenerateDefaultGUIDWith |
Generates a MessageID using ImmerseSDK.GUID.OwnerTypes.Scene and UserID.Empty, which are the default values for an IndexedMonoBehaviour
| |
GetMetadata |
Populate the scene metadata with the metadata of this object
| |
LogIndexInfo |
Log the index information to the console
| |
OnDestroy |
Unity component method
| |
SetGUID |
Set a new GUID for this object
| |
Start |
Unity component method
| |
TryToRegisterIndex |
Register the index for this object, or if scene is not ready, wait for it to become ready and try again
|
Name | Description | |
---|---|---|
_index |
The index of this object
| |
ReservedLowerLimitForIndexes |
Do not set any indexes above this number as they are reserved for our system
This means values between 60000 and 65535 are reserved
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
GetObjectIndex |
Gets the index from the IndexedMonoBehaviour
(Defined by GUID.) | |
GetOwner |
Gets the owner id from the IndexedMonoBehaviour
(Defined by GUID.) | |
GetOwnerType |
Gets the owner type from the IndexedMonoBehaviour
(Defined by GUID.) | |
GetScene |
Gets the scene id from the IndexedMonoBehaviour
(Defined by GUID.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |