日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class InteractableAudioReceiver

    Add audio clip to play onClick or on Voice Command

    Inheritance
    Object
    ReceiverBase
    InteractableAudioReceiver
    Inherited Members
    ReceiverBase.Name
    ReceiverBase.uEvent
    ReceiverBase.Event
    ReceiverBase.Host
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class InteractableAudioReceiver : ReceiverBase

    Constructors

    InteractableAudioReceiver(UnityEvent)

    Creates and AudioReceiver, which plays sounds on Click

    Declaration
    public InteractableAudioReceiver(UnityEvent ev)
    Parameters
    Type Name Description
    UnityEvent ev

    Fields

    AudioClip

    AudioClip to play when event is selected

    Declaration
    public AudioClip AudioClip
    Field Value
    Type Description
    AudioClip

    Properties

    HideUnityEvents

    Defines whether Unity Events should be hidden in inspector for this type of EventReceiver

    Declaration
    public override bool HideUnityEvents { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    ReceiverBase.HideUnityEvents

    Methods

    OnClick(InteractableStates, Interactable, IMixedRealityPointer)

    click happened

    Declaration
    public override void OnClick(InteractableStates state, Interactable source, IMixedRealityPointer pointer = null)
    Parameters
    Type Name Description
    InteractableStates state
    Interactable source
    IMixedRealityPointer pointer
    Overrides
    ReceiverBase.OnClick(InteractableStates, Interactable, IMixedRealityPointer)

    OnUpdate(InteractableStates, Interactable)

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

    Declaration
    public override void OnUpdate(InteractableStates state, Interactable source)
    Parameters
    Type Name Description
    InteractableStates state
    Interactable source
    Overrides
    ReceiverBase.OnUpdate(InteractableStates, Interactable)

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

    voice command called

    Declaration
    public override void OnVoiceCommand(InteractableStates state, Interactable source, string command, int index = 0, int length = 1)
    Parameters
    Type Name Description
    InteractableStates state
    Interactable source
    String command
    Int32 index
    Int32 length
    Overrides
    ReceiverBase.OnVoiceCommand(InteractableStates, Interactable, String, Int32, Int32)
    Back to top Generated by DocFX