SpeechKeywordEvents Class

Definition

The event configuration for the SpeechKeyword InteractionState.

C++
public ref class SpeechKeywordEvents : Microsoft::MixedReality::Toolkit::Experimental::InteractiveElement::BaseInteractionEventConfiguration
Inheritance

Constructors

Fields

OnGlobalChanged

A Unity event used to track whether or not the Global property has changed.

Properties

EventReceiver

The associated runtime event receiver for this event configuration.

(Inherited from BaseInteractionEventConfiguration)
Global

Whether or not to register the IMixedRealitySpeechHandler for global input. If Global is true, then events in the SpeechKeyword state will be fired without requiring an object to be in focus.

Keywords

List of keywords and Unity Events for the Speech input handler to listen for.

OnAnySpeechKeywordRecognized

A Unity event with SpeechEventData. This event will be fired when any of the keywords registered in the Speech input Configuration Profile are recognized.

StateName

The name of the state associated with this event configuration.

(Inherited from BaseInteractionEventConfiguration)

Applies to

Produkt Wersje
MRTK2 Unity 2019 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.6.0, 2.7.0, 2.8.0