Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Fullscreen stuck open after leaving play mode

Discussion in 'Editor & General Support' started by rhys_vdw, Nov 10, 2022.

  1. rhys_vdw

    rhys_vdw

    Joined:
    Mar 9, 2012
    Posts:
    110
    Unity 2022.1.22f1

    I am no longer to leave fullscreen (although it was working earlier). I have rebound the key to F10 and saw (as usual) the "Press F10 to exit fullscreen". However the keystroke is not respected.

    Pressing alt+F4 closes fullscreen. On one occasion this lead to the the game pane breaking spammed to console:

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.GameView.MirrorFullscreenToolbarSettings () (at <70229d9c56924d7794599e8f1526153f>:0)
    3. UnityEditor.GameView.DoToolbarGUI () (at <70229d9c56924d7794599e8f1526153f>:0)
    4. UnityEditor.GameView.OnGUI () (at <70229d9c56924d7794599e8f1526153f>:0)
    5. UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <70229d9c56924d7794599e8f1526153f>:0)
    6. UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <70229d9c56924d7794599e8f1526153f>:0)
    7. UnityEditor.DockArea.OldOnGUI () (at <70229d9c56924d7794599e8f1526153f>:0)
    8. UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <d8cccc97afa84752a0ab37a4bcb4e522>:0)
    9. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    Also I can't _not_ enter full screen mode when pressing play, even though it's set to "normally". Full screen mode is also enabled after stopping play mode after killing the full screen with alt+F4.

    I think this full screen feature is pretty busted. Potentially not ready for a stable branch?
     
    Last edited: Nov 10, 2022
  2. rhys_vdw

    rhys_vdw

    Joined:
    Mar 9, 2012
    Posts:
    110
    After restarting unity the game does this:

    upload_2022-11-11_1-2-39.png

    But the full screen view doesn't open.

    Closing the game tab and reopening it fixes the issue. Clearly this weird state is persisting between launches.
     
  3. rhys_vdw

    rhys_vdw

    Joined:
    Mar 9, 2012
    Posts:
    110
    Okay, and today the fullscreen hotkey simply doesn't work at all.