Page 1 of 1

problems with the auto loader

Posted: Fri May 03, 2019 12:04 am
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

Re: problems with the auto loader

Posted: Fri May 03, 2019 8:16 am
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.