Jump to content

Dropdown appearing behind window


Recommended Posts

For drawing the procedural wing window using the prefab based UI, I have a (unmodified) dropdown with the options filled in by the plugin based on the wing type selected. The current problem is that the dropdown selection is appearing behind the window it's part of and I can't see how the dropdown can be drawn prior to the window

In gameThe gameobject heirachyThe C# is here (before you ask why it's in two pieces, the fuel panel is a footer, there's normally a bunch of other stuff parented to MainPanel in between)

Link to comment
Share on other sites

To be clear, the static components of the second prefab containing the dropdown are parented fine, it's only the active/toggleable part of the dropdown that appears behind everything. Not even sure how you get the instance of that dropdown yet (whether it's just the template, or that gets instanced)

// expected heirachy
primary prefab / main window
> secondary prefab
>> dropdown button
>>> dropdown selections // rendered over everything else

// apparent heirachy
dropdown selections // is drawn behind everything, only receives clicks when they're outside the main window rect, etc.
primary prefab / main window
> secondary prefab
>> dropdown button

 

Edited by Crzyrndm
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...