InteractableOnHoldReceiver Class

Definition

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
InteractableOnHoldReceiver
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)

Applies to