Page 1 of 1

missing object in scene event after load scene

Posted: Sat Sep 03, 2022 2:18 pm
by Zongying
I want to set a specific gameObject active when dialogue ends, so I added functions in scene events for the last dialogue node. (Here the two functions are both to set the scene portal to active from inactive)
Image
It works if I just start playing that scene and finish the dialogue, the object will be activated.

However, when I tried to implement save & load with the save system of pixel crusher, If I save the game before the dialogue, then load that slot, the object previously set in the scene events will be missing, (so there is no object activated after the dialogue).
Image

I want to know what caused this problem and if is there any way to avoid this.

Re: missing object in scene event after load scene

Posted: Sat Sep 03, 2022 2:23 pm
by Tony Li
Hi,

This article explains what is happening: How To: Manage Player Controls and Scene Changes

Don't assign the Dialogue Manager to the OnExecute() event.