浏览代码

Fixed input manager being always selected at start if using the debug menu.

/RenderPassXR_Sandbox
Julien Ignace 8 年前
当前提交
f7cbd39d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Assets/ScriptableRenderPipeline/Core/Debugging/DebugActionManager.cs

3
Assets/ScriptableRenderPipeline/Core/Debugging/DebugActionManager.cs


{
#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
}

正在加载...
取消
保存