playMaker

Author Topic: Manipulate objects that have dont destroy on load on them  (Read 753 times)

andri1305

  • Playmaker Newbie
  • *
  • Posts: 9
Manipulate objects that have dont destroy on load on them
« 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Manipulate objects that have dont destroy on load on them
« Reply #1 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.