Page 1 of 1

Changing Dialogue UI by code..

Posted: Sun Jul 11, 2021 3:59 pm
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 274 times

Re: Changing Dialogue UI by code..

Posted: Sun Jul 11, 2021 5:35 pm
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.