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. Dismiss Notice

Question Temporary Popup floating window element ?

Discussion in 'UI Toolkit' started by toomasio, Dec 9, 2022.

  1. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Hello,

    I was just wondering how to go about achieving this in UI elements. Basically a fuzzy finder window. I have it basically working, but other fields will "overlap" this window element...making it useless.

    I would like to be able to have this popup window appear on a field specifically...while also having depth priority so other fields don't overlay on top.

    Is creating a new window without a "tab" a hack around this? I feel like there is a simpler solution I am missing.
     
  2. alexandred_unity

    alexandred_unity

    Unity Technologies

    Joined:
    Dec 12, 2018
    Posts:
    43
    Hi,
    does your popup window have to be a VisualElement and not a regular EditorWindow? If so, then you could temporarily append your popup VisualElement to the rootVisualElement of the containing window.
     
    toomasio likes this.
  3. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    is there anyway to get the rootVisualElement from working within a PropertDrawer? If not...I might just have to do a temporary GUI window popup...appears to be the most practical approach atm.