Editar

Compartilhar via


StateManager.SetStateOn(String) Method

Definition

Gets and sets a state to On and invokes the OnStateActivated event. Setting a state on changes the state value to 1.

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

Parameters

stateName
String

The name of the state to set to on

Returns

The state that was set to on

Applies to