InteractableOnHoldReceiver Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Basic hold event receiver
public ref class InteractableOnHoldReceiver : Microsoft::MixedReality::Toolkit::UI::ReceiverBase
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableOnHoldReceiver")]
public class InteractableOnHoldReceiver : Microsoft.MixedReality.Toolkit.UI.ReceiverBase
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/InteractableOnHoldReceiver")>]
type InteractableOnHoldReceiver = class
inherit ReceiverBase
Public Class InteractableOnHoldReceiver
Inherits ReceiverBase
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Constructors
InteractableOnHoldReceiver() |
Creates receiver that raises OnHold events |
InteractableOnHoldReceiver(UnityEvent) |
Creates receiver that raises OnHold events |
Fields
HoldTime |
The amount of time to press before triggering event |
uEvent | (Inherited from ReceiverBase) |
Properties
Event |
Each Receiver has a base Event it raises, (in addition to others). (Inherited from ReceiverBase) |
HideUnityEvents |
Defines whether Unity Events should be hidden in inspector for this type of EventReceiver (Inherited from ReceiverBase) |
Host |
Targeted component for Event Receiver at runtime (Inherited from ReceiverBase) |
Name |
Name of Event Receiver (Inherited from ReceiverBase) |
OnHold |
Invoked when interactable has been pressed for HoldTime |
Methods
OnClick(InteractableStates, Interactable, IMixedRealityPointer) |
A click event happened (Inherited from ReceiverBase) |
OnUpdate(InteractableStates, Interactable) |
The state has changed |
OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32) |
A voice command was called (Inherited from ReceiverBase) |