Order In Layer Help?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
touchgoals
Posts: 5
Joined: Fri Mar 01, 2024 1:42 pm

Order In Layer Help?

Post 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 :)
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Order In Layer Help?

Post 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.
Post Reply