missing object in scene event after load scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Zongying
Posts: 1
Joined: Sat Sep 03, 2022 1:12 pm

missing object in scene event after load scene

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

Re: missing object in scene event after load scene

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