Is there any way to keep dialog's UI active
-
- Posts: 1
- Joined: Fri Sep 02, 2016 12:35 pm
Is there any way to keep dialog's UI active
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
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.
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.