日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class State

    State data model, state management and comparison instructions

    Inheritance
    Object
    State
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Overrides
    Object.ToString()
    Back to top Generated by DocFX