I've been wrestling with this problem for quite some time now and still haven't found a good way to do it. I know that the elements are rendered from top to bottom but since I'm using layout groups rearranging the hierarchy simply isn't an option. I've also tried to add canvas to the elements I want to bring to front and then I've overriden the parent canvas' sorting layer, still no luck (in my Unity 5.0 project it created weird behaviors with the event handlers and in my current project running in 4.6.2 for reasons it just messes the layout and even makes some objects disappear..)
For example in my current project I would need to open a menu (UI panel) by clicking a button which I would like to render on top of everything else while the panel is open.
So if some guru out there would like to share their wisdom about the topic it would be greatly appreciated!
I'm aware this is an old post, but I'm having exactly the same issue. Tried all sorts of things (no pun intended), but to no avail. Did you solve it?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Multiple Cars not working
Distribute terrain in zones
Illuminating a 3D object's edges OnMouseOver (script in c#)?
Any way to use multiple font styles within a single UI Text component?
Why is Sprite a null?