Click or drag to resize

IndexedMonoBehaviour Class

A MonoBehaviour that's indexed and can receive network messages
Inheritance Hierarchy

Namespace:  ImmerseSDK.Indexing
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public abstract class IndexedMonoBehaviour : LoggingBehaviour, 
	IIndexed

The IndexedMonoBehaviour type exposes the following members.

Constructors
  NameDescription
Protected methodIndexedMonoBehaviour
Initializes a new instance of the IndexedMonoBehaviour class
Top
Properties
  NameDescription
Public propertyGUID
The message id of this object
Top
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
Fields
  NameDescription
Private field_index
The index of this object
Public fieldStatic memberReservedLowerLimitForIndexes
Do not set any indexes above this number as they are reserved for our system This means values between 60000 and 65535 are reserved
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