Modifier

Partager via


StateManager.GetState(String) Method

Definition

Gets a state by using the state name.

public:
 Microsoft::MixedReality::Toolkit::Experimental::InteractiveElement::InteractionState ^ GetState(System::String ^ stateName);
public Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.InteractionState GetState (string stateName);
member this.GetState : string -> Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.InteractionState
Public Function GetState (stateName As String) As InteractionState

Parameters

stateName
String

The name of the state to retrieve

Returns

The state contained in the State list, returns null if the state was not found.

Applies to