We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class States

    States scriptableObject for storing available states and related state model

    Inheritance
    Object
    States
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class States : ScriptableObject

    Constructors

    States()

    Declaration
    public States()

    Properties

    DefaultIndex

    Default index into state list

    Declaration
    public int DefaultIndex { get; set; }
    Property Value
    Type Description
    Int32

    StateList

    List of available states defined by asset

    Declaration
    public List<State> StateList { get; set; }
    Property Value
    Type Description
    List<State>

    StateModelType

    Defines the type of State Model to associate with this States asset. Type must be a class that extends InteractableStateModel

    Declaration
    public Type StateModelType { get; set; }
    Property Value
    Type Description
    Type

    Methods

    CreateStateModel()

    Create a State Model class and initialize it with the configuration data from this States ScriptableObject

    Declaration
    public BaseStateModel CreateStateModel()
    Returns
    Type Description
    BaseStateModel

    BaseStateModel or inherited class implementation object initialized with the StateList in this ScriptableObject

    Equals(States)

    Test whether the current States object and the argument States object have the same internal values and configurations

    Declaration
    public bool Equals(States other)
    Parameters
    Type Name Description
    States other

    other States object to compare against self

    Returns
    Type Description
    Boolean

    true if internal list of state values and class configuration matches other, false otherwise

    GetStates()

    Declaration
    [Obsolete("Use the StateList property instead")]
    public State[] GetStates()
    Returns
    Type Description
    State[]
    In This Article
    Back to top Generated by DocFX