Changing Dialogue UI by code..

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
wlchfl5359
Posts: 29
Joined: Sat Jan 02, 2021 4:27 pm

Changing Dialogue UI by code..

Post by wlchfl5359 »

Hi,
Is it possible changing Dialogue UI by code??
If i use 'don't destroy object', i need to change Dialogue UI on different scene.
Each canvas is in different scene.
So i want to put some Dialogue Ui using code. is it possible?
Thank you.
캡처.JPG
캡처.JPG (24.68 KiB) Viewed 258 times
User avatar
Tony Li
Posts: 21987
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Dialogue UI by code..

Post by Tony Li »

Hi,

Yes. Just call DialogueManager.UseDialogueUI(). Example:

Code: Select all

void Start()
{
    DialogueManager.UseDialogueUI(thisSceneDialogueUI);
}
Alternatively, use an Override Dialogue UI component.
Post Reply