Class InteractableOnPressReceiver
Basic press event receiver
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableOnPressReceiver : ReceiverBase
Constructors
InteractableOnPressReceiver()
Receiver that raises press and release unity events
Declaration
public InteractableOnPressReceiver()
InteractableOnPressReceiver(UnityEvent)
Receiver that raises press and release unity events
Declaration
public InteractableOnPressReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Fields
InteractionFilter
Specify whether press event is for near or far interaction
Declaration
public int InteractionFilter
Field Value
Type | Description |
---|---|
Int32 |
OnRelease
Invoked on pointer release
Declaration
public UnityEvent OnRelease
Field Value
Type | Description |
---|---|
UnityEvent |
Properties
OnPress
Invoked on pointer press
Declaration
public UnityEvent OnPress { get; }
Property Value
Type | Description |
---|---|
UnityEvent |
Methods
OnUpdate(InteractableStates, Interactable)
The state has changed
Declaration
public override void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |