Class State
State data model, state management and comparison instructions
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class State
Fields
ActiveIndex
Index of state in current list
Declaration
public int ActiveIndex
Field Value
| Type | Description |
|---|---|
| Int32 |
Bit
Bitwise value of state for comparison
Declaration
public int Bit
Field Value
| Type | Description |
|---|---|
| Int32 |
Index
Index of State in all available state list
Declaration
public int Index
Field Value
| Type | Description |
|---|---|
| Int32 |
Name
Name of state
Declaration
public string Name
Field Value
| Type | Description |
|---|---|
| String |
Value
Current value of state (e.g on/off etc)
Declaration
public int Value
Field Value
| Type | Description |
|---|---|
| Int32 |
Methods
CompareState(State)
Returns true if two state objects have identical internal values, false otherwise
Declaration
public bool CompareState(State s)
Parameters
| Type | Name | Description |
|---|---|---|
| State | s | other State object to compare against |
Returns
| Type | Description |
|---|---|
| Boolean | true if identical internal values, false otherwise |
Copy()
Create copy of current State with identical values
Declaration
public State Copy()
Returns
| Type | Description |
|---|---|
| State | copied instance of this State |
ToBit()
Declaration
[Obsolete("Use Bit property")]
public int ToBit()
Returns
| Type | Description |
|---|---|
| Int32 |
ToInt()
Declaration
[Obsolete("Use Index property")]
public int ToInt()
Returns
| Type | Description |
|---|---|
| Int32 |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |