|
|
|
|
|
|
{ |
|
|
|
#if UNITY_EDITOR
|
|
|
|
// Grab reference to input manager
|
|
|
|
var currentSelection = UnityEditor.Selection.activeObject; |
|
|
|
UnityEditor.EditorApplication.ExecuteMenuItem("Edit/Project Settings/Input"); |
|
|
|
var inputManager = UnityEditor.Selection.activeObject; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Commit
|
|
|
|
soInputManager.ApplyModifiedProperties(); |
|
|
|
|
|
|
|
UnityEditor.Selection.activeObject = currentSelection; |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|