IsInitializingPlaymodeLayout() static private method

static private IsInitializingPlaymodeLayout ( ) : bool
return bool
Example #1
0
 private void OnLostFocus()
 {
     if (!EditorApplicationLayout.IsInitializingPlaymodeLayout())
     {
         this.AllowCursorLockAndHide(false);
     }
     InternalEditorUtility.OnGameViewFocus(false);
 }
Example #2
0
 private void OnLostFocus()
 {
     if (!EditorApplicationLayout.IsInitializingPlaymodeLayout())
     {
         Unsupported.SetAllowCursorLock(false);
         Unsupported.SetAllowCursorHide(false);
     }
     InternalEditorUtility.OnGameViewFocus(false);
 }
Example #3
0
 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);
 }