Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am working on a project with multiple players. I am trying to make name tags that appear right above the characters. (I can do that.) And I want the images to appear right in front of all of the objects, so you can see where they are through walls. I looked at the manual, and I saw the depth only function, but I don’t understand it. I am pretty stuck. Also, side question: do images have to be childed to the canvas to render, or what should I do with that. Can anyone help me with how to do this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
124 views
Welcome To Ask or Share your Answers For Others

1 Answer

If I get what you mean correctly, then I think the solution would be changing the canvas render mode to "Screen Space-Overlay", which should make it render on top. Additionally, for your other question: yes, UI components have to be childed to a canvas to be rendered


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...