SpeechCommands(String, KeyCode, MixedRealityInputAction, String) Constructor
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.
Constructor.
public SpeechCommands (string keyword, UnityEngine.KeyCode keyCode, Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction action, string localizationKey = "");
new Microsoft.MixedReality.Toolkit.Input.SpeechCommands : string * UnityEngine.KeyCode * Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction * string -> Microsoft.MixedReality.Toolkit.Input.SpeechCommands
Public Sub New (keyword As String, keyCode As KeyCode, action As MixedRealityInputAction, Optional localizationKey As String = "")
Parameters
- keyword
- String
The Keyword.
- keyCode
- UnityEngine.KeyCode
The KeyCode.
- action
- MixedRealityInputAction
The Action to perform when Keyword or KeyCode is recognized.
- localizationKey
- String
An optional key to use to override the keyword with a localized version