Search Unity

Bug Windows not maskable

Discussion in 'In-Editor Tutorials Packages' started by MiTschMR, Sep 24, 2022.

  1. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    487
    Windows like the GameView, PackageManager and InspectorWindow can not be masked when they are in a tab group.

    For example the package manager window when it is in tab group:
    upload_2022-9-24_21-34-21.png

    When it is standalone, it works:
    upload_2022-9-24_21-35-41.png

    Generally speaking, if a window is not "visible" in the tab group (another window is shown, you can only see the window tab) then it is not guaranteed to be displayed. For some it works, for some not.
     
    Last edited: Sep 25, 2022
  2. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    487
    Reported as IN-18224.
     
  3. RikuTheFuffs

    RikuTheFuffs

    Joined:
    Sep 9, 2013
    Posts:
    15
    Hi! That's expected behaviour. Window masking only works when the window is visible.
    In order to unmask the window when it's in a tab group and not visible, you need to set the masking rules so that they unmask the title using the
    GUIContent
    selector in the masking settings. However, given that the window has also an icon in its title, this might be difficult.

    Is using the
    CustomCallbacks
    mechanism to open/focus the window when the Tutorial page loads an option for your use case?
     
  4. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    487
    Thank you for your answer, I will look into using the
    CustomCallbacks
    mechanism and provide an update when done.
     
  5. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    487
    Yes, it looks very promising if I use the
    Showing
    callback. I will still leave it open because it could also be used as a feature request, with i.e. a toggle "Show window if hidden" or something similar.