Class InteractableOnClickReceiver
A basic receiver for detecting clicks
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableOnClickReceiver : ReceiverBase
Constructors
InteractableOnClickReceiver(UnityEvent)
Creates receiver for raising OnClick events
Declaration
public InteractableOnClickReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Properties
OnClicked
Invoked on pointer clicked
Declaration
public UnityEvent OnClicked { 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 |