Class InteractableOnHoldReceiver
Basic hold event receiver
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableOnHoldReceiver : ReceiverBase
Constructors
InteractableOnHoldReceiver()
Creates receiver that raises OnHold events
Declaration
public InteractableOnHoldReceiver()
InteractableOnHoldReceiver(UnityEvent)
Creates receiver that raises OnHold events
Declaration
public InteractableOnHoldReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Fields
HoldTime
The amount of time to press before triggering event
Declaration
public float HoldTime
Field Value
Type | Description |
---|---|
Single |
Properties
OnHold
Invoked when interactable has been pressed for HoldTime
Declaration
public UnityEvent OnHold { 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 |