Set different Dialogue UI from script
Posted: Mon Apr 19, 2021 8:13 pm
Hi everyone
Might be a very basic question, but I've had a search around and read through the manual and can't seem to find it so thought I'd ask here. How do I set different Dialogue UI via script?
What I've currently got is an array currently attached to the DialogueManager which I place a bunch of different Dialogue UI I'd like to use (e.g. some are left-hand side, right-hand side, with/without background panel etc). The code I'm currently using which doesn't seem to work:
Thanks in advance for any advice
Might be a very basic question, but I've had a search around and read through the manual and can't seem to find it so thought I'd ask here. How do I set different Dialogue UI via script?
What I've currently got is an array currently attached to the DialogueManager which I place a bunch of different Dialogue UI I'd like to use (e.g. some are left-hand side, right-hand side, with/without background panel etc). The code I'm currently using which doesn't seem to work:
Code: Select all
DialogueManager.instance.SetDialoguePanel(DialogueManager.instance.GetComponent<MyDialogueList>().DialogueUIList[1]);