Page 1 of 1

Order In Layer Help?

Posted: Fri Jun 07, 2024 2:21 am
by touchgoals
Hi folks!
This may be a silly question, but I’m having a bit of trouble getting my UI to layer properly? I’m using the VN framework and my text box has some embellishments near the top which are covering up the character name text (image: I hope that link works haha.) See how the garlic bulb is covering up the name? I haven’t been able to figure out how to get the name to render on top of the text box and would love some assistance! Many thanks :)

Re: Order In Layer Help?

Posted: Fri Jun 07, 2024 8:22 am
by Tony Li
Hi,

Unity UI draws UI elements in order from the top of the hierarchy to the bottom. The top element in the hierarchy will be drawn first, then the next one down will be drawn on top of it, etc.

Here are two ways to solve the issue:

1. Move the Rect Transform position of the Portrait Name field to the right so it doesn't overlap the bulb image.

2. Or move the Portrait Name GameObject down in the hierarchy so it's below the bulb image.