Page 1 of 1
Dialogue UI and Quest UI overlapping
Posted: Thu Dec 24, 2020 9:53 am
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.
I'd like the dialogue to go on top of everything else.
Thanks in advance!
Re: Dialogue UI and Quest UI overlapping
Posted: Thu Dec 24, 2020 10:02 am
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.
Re: Dialogue UI and Quest UI overlapping
Posted: Sun Dec 27, 2020 8:07 am
by gellosart
Hello,
Thank you so much. It's worked!
Re: Dialogue UI and Quest UI overlapping
Posted: Sun Dec 27, 2020 8:34 am
by Tony Li
Glad to help!