Edit

Share via


InteractableOnGrabReceiver Class

Definition

A basic grab event receiver for detecting grab events (OnGrab, OnRelease) or grab state changes from Interactable When the grab states change, on or off, these events are triggered

public ref class InteractableOnGrabReceiver : Microsoft::MixedReality::Toolkit::UI::ReceiverBase
public class InteractableOnGrabReceiver : Microsoft.MixedReality.Toolkit.UI.ReceiverBase
type InteractableOnGrabReceiver = class
    inherit ReceiverBase
Public Class InteractableOnGrabReceiver
Inherits ReceiverBase
Inheritance
InteractableOnGrabReceiver

Constructors

InteractableOnGrabReceiver()

Creates a receiver that raises grab start and end events.

InteractableOnGrabReceiver(UnityEvent)

Creates a receiver that raises grab start and end events.

Fields

OnRelease

Invoked on grab release

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

Invoked on grab start

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