playMaker

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

andri1305

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Manipulate objects that have dont destroy on load on them
« on: September 19, 2019, 10:13:19 AM »
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: 4519
    • View Profile
    • jinxtergames
Re: Manipulate objects that have dont destroy on load on them
« Reply #1 on: September 20, 2019, 10:03:03 AM »
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.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions