Page 1 of 1
Is there any way to keep dialog's UI active
Posted: Fri Sep 02, 2016 12:39 pm
by duotemplar
What I want to do is, when I click the continue button to finish the conversation(last dialog has been shown).I what the UI keep active, but now it will auto deactive the UI, so is there any way to do this?
Re: Is there any way to keep dialog's UI active
Posted: Fri Sep 02, 2016 1:42 pm
by Tony Li
Yes. Inspect the dialogue UI component (e.g., Unity UI Dialogue UI) and unassign the Dialogue > Panel field. This prevents the dialogue UI from controlling that panel.
If you want the dialogue UI to stay invisible until the first conversation is started:
1. Set the panel inactive.
2. Add a Dialogue System Events component to the Dialogue Manager.
3. In Dialogue System Events > Conversation Events > On Conversation Start, add an event handler. Assign the panel, select GameObject.SetActive, and tick the checkbox to tell it to set the panel active.
Otherwise, if you want the dialogue UI visible all the time, just leave it active.
If you get stuck on any of this, please post a screenshot of what you have, or send an example project to tony (at) pixelcrushers.com and let me know what version of Unity to use.