Class InteractableOnToggleReceiver
An event receiver that listens to toggle events
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableOnToggleReceiver : ReceiverBase
Constructors
InteractableOnToggleReceiver()
Creates a receiver that raises events for toggle button states
Declaration
public InteractableOnToggleReceiver()
InteractableOnToggleReceiver(UnityEvent)
Creates a receiver that raises events for toggle button states
Declaration
public InteractableOnToggleReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Fields
OnDeselect
Invoked when toggle is deselected
Declaration
public UnityEvent OnDeselect
Field Value
Type | Description |
---|---|
UnityEvent |
Properties
OnSelect
Invoked when toggle is checked
Declaration
public UnityEvent OnSelect { get; }
Property Value
Type | Description |
---|---|
UnityEvent |
Methods
OnClick(InteractableStates, Interactable, IMixedRealityPointer)
A click event happened
Declaration
public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source | |
IMixedRealityPointer | pointer |
Overrides
OnUpdate(InteractableStates, Interactable)
The state has changed
Declaration
public override void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |