State Class

Definition

State data model, state management and comparison instructions

C++
public ref class State
Inheritance
State
Attributes

Constructors

Fields

ActiveIndex

Index of state in current list

Bit

Bitwise value of state for comparison

Index

Index of State in all available state list

Name

Name of state

Value

Current value of state (e.g on/off etc)

Methods

CompareState(State)

Returns true if two state objects have identical internal values, false otherwise

Copy()

Create copy of current State with identical values

ToBit()
ToInt()
ToString()

Returns a string that represents the current object.

Applies to

Produkt Wersje
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0