編集

次の方法で共有


InputMappingAxisUtility.CheckUnityInputManagerMappings Method

Definition

Simple static function to check Unity InputManager Axis configuration, and apply if needed.

public static bool CheckUnityInputManagerMappings (Microsoft.MixedReality.Toolkit.Utilities.Editor.InputManagerAxis[] axisMappings, bool updateMappings = true);
static member CheckUnityInputManagerMappings : Microsoft.MixedReality.Toolkit.Utilities.Editor.InputManagerAxis[] * bool -> bool
Public Shared Function CheckUnityInputManagerMappings (axisMappings As InputManagerAxis(), Optional updateMappings As Boolean = true) As Boolean

Parameters

axisMappings
InputManagerAxis[]

Array of axis mappings, to configure your own custom set.

updateMappings
Boolean

If the mappings should be updated to match axisMappings or simply check that they match. Defaults to true.

Returns

True if the mappings needed an update. False if they match axisMappings already.

Remarks

This only exists as the Unity input manager CANNOT map Axis to an id; it has to be through a mapping.

Applies to