Class InteractiveElementRuntimeExample
Contains examples on how to add states with event listeners to an Interactive Element.
Namespace: Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.Examples
Assembly: cs.temp.dll.dll
Syntax
public class InteractiveElementRuntimeExample : MonoBehaviour
Methods
AddClickedState()
Add Clicked state with event listeners.
Declaration
public void AddClickedState()
AddDefaultStateListeners()
Add Default state event listeners. The Default state is present by default and does not need to be added.
Declaration
public void AddDefaultStateListeners()
AddFocusFarState()
Add FocusFar state with event listeners.
Declaration
public void AddFocusFarState()
AddFocusNearState()
Add FocusNear state with event listeners.
Declaration
public void AddFocusNearState()
AddSelectFarState()
Add SelectFar state with event listeners.
Declaration
public void AddSelectFarState()
AddSpeechKeywordState()
Add the SpeechKeyword state with event listeners.
Declaration
public void AddSpeechKeywordState()
AddStateActivatedListeners()
Add State Activated and State Deactivated event listeners.
Declaration
public void AddStateActivatedListeners()
AddToggleStates()
Add the Toggle states with event listeners.
Declaration
public void AddToggleStates()
AddTouchState()
Add Touch state with event listeners.
Declaration
public void AddTouchState()
CreateNewState()
Create a state with a new name. This state will be initialized with the StateEvents event configuration that contains the OnStateOn and OnStateOff events.
Declaration
public void CreateNewState()