InputMappingAxisUtility.CheckUnityInputManagerMappings Method
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.
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
- 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.
True if the mappings needed an update. False if they match axisMappings already.
This only exists as the Unity input manager CANNOT map Axis to an id; it has to be through a mapping.
Produkt | Wersje |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |