Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Windows not maskable

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

  1. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    139
    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:
    139
    Reported as IN-18224.
     
  3. RikuTheFuffs

    RikuTheFuffs

    Joined:
    Sep 9, 2013
    Posts:
    14
    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:
    139
    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:
    139
    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.