Dialogue UI and Quest UI overlapping

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gellosart
Posts: 10
Joined: Thu Dec 24, 2020 9:41 am

Dialogue UI and Quest UI overlapping

Post by gellosart »

Hello, I have a rather simple problem but I'm not sure how to fix It so i figured i'd ask here.

Basically, my Dialogue Ui is being overlapped by my Quest UI with is making the dialogue not work.
Image

I'd like the dialogue to go on top of everything else.

Thanks in advance!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI and Quest UI overlapping

Post by Tony Li »

Hi,

Use separate canvases with different sort orders. For example, put the quest HUD in a canvas with Sort Order = 0 and the dialogue UI in a canvas with Sort Order = 1.

It's easiest to do this if you add one or more UIs to the Dialogue Manager at design time, instead of letting the Dialogue Manager instantiate everything at runtime. Here are some example steps: (just one way to do it)

1. Create a new canvas named Dialogue Canvas as a child of the Dialogue Manager. So your Dialogue Manager will have two canvases: the original Canvas, and your new Dialogue Canvas.

2. Set the Dialogue Canvas's Sort Order to 1.

3. Add/move your dialogue UI to Dialogue Canvas. Make sure it's assigned to the Dialogue Manager's Dialogue UI field.
gellosart
Posts: 10
Joined: Thu Dec 24, 2020 9:41 am

Re: Dialogue UI and Quest UI overlapping

Post by gellosart »

Hello,

Thank you so much. It's worked!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue UI and Quest UI overlapping

Post by Tony Li »

Glad to help!
Post Reply