Issue after using Application.LoadLevel?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
haocow
Posts: 2
Joined: Wed Feb 11, 2015 8:33 am

Issue after using Application.LoadLevel?

Post by haocow »

After I load my second scene, my dialogue no longer shows up.  I can still see alerts pop up, but any conversation I initiate no longer appears?  How can I fix this?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Issue after using Application.LoadLevel?

Post by Tony Li »

Hi,



What GUI system are you using? Is your dialogue UI part of the scene, or is it a reference to a prefab?



If it's Unity UI, make the canvas a child of the Dialogue Manager GameObject so it persists across scene changes. (And make sure your second scene has an EventSystem, too. You can make the EventSystem a child of the Dialogue Manager also if necessary.)



On the Dialogue Manager, are Don't Destroy On Load and Allow Only One Instance ticked? If so, the Dialogue Manager from the original scene should stick around. Don't include a Dialogue Manager when building your second scene.



Please set the Dialogue Manager's Debug Level to Info and reproduce the issue. Does the Console view show the log entry "Dialogue System: Starting conversation..."?



Please feel free to send an example project to tony (at) pixelcrushers.com. I'll be happy to take a look.


haocow
Posts: 2
Joined: Wed Feb 11, 2015 8:33 am

Issue after using Application.LoadLevel?

Post by haocow »

But if I don't include a Dialogue Manager in the second scene, how can I call the conversations through the script?  I'm trying to use DialogueManager.StartConversation("convoName");
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Issue after using Application.LoadLevel?

Post by Tony Li »

As long as the Dialogue Manager from your first scene has Don't Destroy On Load ticked, it will be there to handle DialogueManager.StartConversation().



I got your email, and I'll reply directly to it.
Post Reply