Bearbeiten

Freigeben über


CustomInteractablesReceiver Class

Definition

Example of building a custom receiver that can be loaded as part of the events on the Interactable or in InteractableReceiverList or InteractableReceiver

Extend ReceiverBaseMonoBehavior to build external event components

public ref class CustomInteractablesReceiver : Microsoft::MixedReality::Toolkit::UI::ReceiverBase
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/CustomInteractablesReceiver")]
public class CustomInteractablesReceiver : Microsoft.MixedReality.Toolkit.UI.ReceiverBase
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/CustomInteractablesReceiver")>]
type CustomInteractablesReceiver = class
    inherit ReceiverBase
Public Class CustomInteractablesReceiver
Inherits ReceiverBase
Inheritance
CustomInteractablesReceiver
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

CustomInteractablesReceiver(UnityEvent)

Fields

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

Host

Targeted component for Event Receiver at runtime

(Inherited from ReceiverBase)
Name

Name of Event Receiver

(Inherited from ReceiverBase)

Methods

OnClick(InteractableStates, Interactable, IMixedRealityPointer)

click happened

OnUpdate(InteractableStates, Interactable)

Called on update, check to see if the state has changed sense the last call

OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)

voice command called

Applies to