private void OnLostFocus() { if (!EditorApplicationLayout.IsInitializingPlaymodeLayout()) { this.AllowCursorLockAndHide(false); } InternalEditorUtility.OnGameViewFocus(false); }
private void OnLostFocus() { if (!EditorApplicationLayout.IsInitializingPlaymodeLayout()) { Unsupported.SetAllowCursorLock(false); Unsupported.SetAllowCursorHide(false); } InternalEditorUtility.OnGameViewFocus(false); }
private void OnLostFocus() { // We unlock the cursor when the game view loses focus to allow the user to regain cursor control. // Fix for 389362: Ensure that we do not unlock cursor during init of play mode. Because we could // be maximizing game view, which causes a lostfocus on the original game view, in these situations we do // not unlock cursor. if (!EditorApplicationLayout.IsInitializingPlaymodeLayout()) { AllowCursorLockAndHide(false); } SetFocus(false); }