Language
Edit

SpeechInteractor.RegisterInteractable(StatefulInteractable, String) Method

Definition

Register a new StatefulInteractable and an associated keyword with this SpeechInteractor.

public void RegisterInteractable(MixedReality.Toolkit.StatefulInteractable interactable, string keyword);
member this.RegisterInteractable : MixedReality.Toolkit.StatefulInteractable * string -> unit
Public Sub RegisterInteractable (interactable As StatefulInteractable, keyword As String)

Parameters

interactable
StatefulInteractable

The StatefulInteractable to select when the keyword in recognized.

keyword
String

The keyword to listen for.

Remarks

When this SpeechInteractor recognizes the provided keyword, UnityEngine.XR.Interaction.Toolkit.XRInteractionManager.SelectEnter(UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor,UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable) is called, passing along the provided interactable.

Applies to