Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: andri1305 on September 19, 2019, 01:13:19 PM

Title: Manipulate objects that have dont destroy on load on them
Post by: andri1305 on September 19, 2019, 01:13:19 PM
Is there a way to manipulate the objects that a re kept in the scene while a new one is loaded in. I have for example a level manager that in the first scene works as intended, loads next scene. When I go back to the scene where I began it stops working. I tried using prefabs but to no avail. I have singleton manager on it to keep it from duplicating when loading the scene again
Title: Re: Manipulate objects that have dont destroy on load on them
Post by: djaydino on September 20, 2019, 01:03:03 PM
Hi.
you need to treat it like a prefab.

On the scene where the manager is created you probably have actions connected directly (by drag/dropping the gameobject into the actions)
When you go back to that scene they will not be connected anymore as the one from the original scene will be destroyed (and lose all its connections in the scene) and the singleton version will be used.