編輯

共用方式為


SpeechCommands Struct

Definition

Data structure for mapping Voice and Keyboard input to MixedRealityInputActions that can be raised by the Input System.

public value class SpeechCommands
[System.Serializable]
public struct SpeechCommands
[<System.Serializable>]
type SpeechCommands = struct
Public Structure SpeechCommands
Inheritance
SpeechCommands
Attributes

Constructors

SpeechCommands(String, KeyCode, MixedRealityInputAction, String)

Constructor.

Properties

Action

The MixedRealityInputAction that is raised by either the Keyword or KeyCode.

KeyCode

The corresponding KeyCode that also raises the same action as the Keyword.

Keyword

The Fallback Keyword to listen for, or the localization key if no fallback keyword was set.

LocalizedKeyword

The localized version of the keyword

Applies to