P
P
Pavel2018-06-24 19:32:33
Unity
Pavel, 2018-06-24 19:32:33

How to render the object that is next in the hierarchy first?

Actually the question is in the title. The screenshot shows that I have 2 objects that go in the hierarchy one after the other. How can I make it so that when the window element is enabled, window(1) is rendered in front of it? And is there a better option than swapping them in the hierarchy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-06-24
@youkerni

Well, depending on what is in these objects. SpriteRenderer has SortingLayer and Order in Layer for example. Canvas has the same thing. Well, you can try to move on z.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question