Click or drag to resize

IndexedMonoBehaviourWithNamedStates Class

Adds support for user friendly named states to IndexedMonoBehaviourWithState
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.IndexingIndexedMonoBehaviour
              ImmerseSDK.IndexingIndexedMonoBehaviourWithState
                ImmerseSDK.IndexingIndexedMonoBehaviourWithNamedStates

Namespace:  ImmerseSDK.Indexing
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.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
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 MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also