StateManager.SetStateOn(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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