How to fix overlayed dialogues?

Hi there,

I created a dialogue for my first NPC and it worked fine, however, if I try to add a dialogue to my second NPC it is shown over the dialogue of the first NPC.
I tried to solve the problem by separating the canvases (by setting Canvas render mode to World space, but it didn’t work out - the dialogues weren’t shown at all).
I would appreciate any ideas, how I could fix this. Thank you!

Do gameObject.SetActive(false) to the one you don’t want on the screen anymore and (true) to the one you do want.

If you want them to appear in a list (like one up top and one below), put them in a Grid Layout Group and set all your preferred settings there.

What might be suitable for you is to have two different texts and when one is finished you set that text to “”; so for example lets say you have text1, and text2…

text1.text = “Hello i’m an npc”;
text1.text = “”;
text2.text = "Hello i’m also an npc;
text2.text = “”;

Or as the other guy said, once you want the other text to appear simply set the orignal one to gameobject.SetActive(false);

Are you doing this in a Coroutine or as a click event?