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

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

    Show / Hide Table of Contents

    Class InteractableStates

    list of Interactable states and basic comparison

    Inheritance
    Object
    BaseStateModel
    InteractableStates
    Inherited Members
    BaseStateModel.currentState
    BaseStateModel.stateList
    BaseStateModel.ImportStates(List<State>)
    BaseStateModel.SetStateOn(Int32)
    BaseStateModel.SetStateOff(Int32)
    BaseStateModel.SetStateValue(Int32, Int32)
    BaseStateModel.SetStateListValue(Int32, Int32)
    BaseStateModel.GetStateValue(Int32)
    BaseStateModel.GetState(Int32)
    BaseStateModel.SetCurrentState(State)
    BaseStateModel.CurrentState()
    BaseStateModel.GetBit()
    Object.ToString()
    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
    public class InteractableStates : BaseStateModel

    Constructors

    InteractableStates()

    Declaration
    public InteractableStates()

    InteractableStates(State)

    Declaration
    public InteractableStates(State defaultState)
    Parameters
    Type Name Description
    State defaultState

    Fields

    allStates

    Declaration
    protected State[] allStates
    Field Value
    Type Description
    State[]

    Methods

    CompareStates()

    Compare all state values, set appropriate current State and return that current State

    Declaration
    public override State CompareStates()
    Returns
    Type Description
    State

    Current State after comparing State values

    Overrides
    BaseStateModel.CompareStates()

    GetDefaultStates()

    Returns the default states for InteractableStates. Default states are set on an interactable when it is created and no other list of states is specified. Default States should match "DefaultStates" scriptable object in Interactable

    Declaration
    public virtual List<State> GetDefaultStates()
    Returns
    Type Description
    List<State>

    GetState(InteractableStates.InteractableStateEnum)

    Declaration
    public State GetState(InteractableStates.InteractableStateEnum state)
    Parameters
    Type Name Description
    InteractableStates.InteractableStateEnum state
    Returns
    Type Description
    State

    GetStates()

    Get list of available States for this State Model

    Declaration
    public override State[] GetStates()
    Returns
    Type Description
    State[]

    Array of available State objects

    Overrides
    BaseStateModel.GetStates()

    SetStateOff(InteractableStates.InteractableStateEnum)

    Declaration
    public virtual void SetStateOff(InteractableStates.InteractableStateEnum state)
    Parameters
    Type Name Description
    InteractableStates.InteractableStateEnum state

    SetStateOn(InteractableStates.InteractableStateEnum)

    Declaration
    public virtual void SetStateOn(InteractableStates.InteractableStateEnum state)
    Parameters
    Type Name Description
    InteractableStates.InteractableStateEnum state

    SetStateValue(InteractableStates.InteractableStateEnum, Int32)

    Declaration
    public virtual void SetStateValue(InteractableStates.InteractableStateEnum state, int value)
    Parameters
    Type Name Description
    InteractableStates.InteractableStateEnum state
    Int32 value
    Back to top Generated by DocFX