problems with the auto loader

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
billyt
Posts: 1
Joined: Thu May 02, 2019 11:35 pm

problems with the auto loader

Post by billyt »

Hi,

We are having issues with the AutoLoader.

After the internal scene loading takes place, many public variables set in the inspector become broken.

Eg

Dialog System Controller / Display Settings / Camera and Cutscene Settings / Sequencer Camera

https://www.dropbox.com/s/kdyeufzvyn7oy ... 3.png?dl=0


Any tips?

Thanks
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: problems with the auto loader

Post by Tony Li »

Hi,

The Dialogue Manager GameObject is a "persistent singleton". This means it survives scene changes and doesn't allow new Dialogue Manager GameObjects to exist simultaneously in the scene.

Try assigning a prefab or a child of the Dialogue Manager to the Sequencer Camera field. (If you assign a prefab, it will be parented to the Dialogue Manager). This way, the Dialogue Manager will carry it along, and it will continue to exist when loading new scenes -- such as when loading a saved game.
Post Reply