Click or drag to resize

IndexedMonoBehaviourWithNamedStates Class

Adds support for user friendly named states to IndexedMonoBehaviourWithState
Inheritance Hierarchy

Namespace:  ImmerseSDK.Indexing
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public class IndexedMonoBehaviourWithNamedStates : IndexedMonoBehaviourWithState

The IndexedMonoBehaviourWithNamedStates type exposes the following members.

Constructors
  NameDescription
Public methodIndexedMonoBehaviourWithNamedStates
Initializes a new instance of the IndexedMonoBehaviourWithNamedStates class
Top
Properties
  NameDescription
Public propertyStateName
The current state as a string
Public propertyStateNames
The current list of named states
Top
Methods
  NameDescription
Protected methodAwake
Unity component method
(Overrides IndexedMonoBehaviourAwake.)
Public methodHasStates
Returns true if this IndexedMonoBehaviour has any named states
Public methodIsStateValid
Returns true if the given state index can be represented by one of the names in the list
Public methodSetState(Int32)
Sets the state by index
Public methodSetState(String)
Sets the state by name
Top
Fields
  NameDescription
Private field_currentState
Private field_stateNames
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