Editar

Compartir a través de


InteractableAudioReceiver Class

Definition

Add audio clip to play onClick or on Voice Command

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

Constructors

InteractableAudioReceiver(UnityEvent)

Creates and AudioReceiver, which plays sounds on Click

Fields

AudioClip

AudioClip to play when event is selected

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