SpeechInteractor.RegisterInteractable(StatefulInteractable, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.