Is there any way to keep dialog's UI active

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
duotemplar
Posts: 1
Joined: Fri Sep 02, 2016 12:35 pm

Is there any way to keep dialog's UI active

Post 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?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Is there any way to keep dialog's UI active

Post 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.
Post Reply