playMaker

Author Topic: Dont destroy on load--GUI [SOLVED]  (Read 1545 times)

krane

  • Junior Playmaker
  • **
  • Posts: 63
Dont destroy on load--GUI [SOLVED]
« on: February 05, 2017, 02:50:48 PM »
I have a question about Don't Destroy on Load.
I have 3 buttons that will persist throughout my scenes. I'm putting them into a loader level at the start (so they won't repeat), and then they have a Don't Destroy on Load on the canvas that they're attached to.

The problem is, when I go to a  new scene, the buttons stop working. I click them but they no longer work (i.e. no longer trigger).
What am I missing?
« Last Edit: February 06, 2017, 11:27:40 AM by krane »

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Dont destroy on load--GUI
« Reply #1 on: February 05, 2017, 03:33:06 PM »
Does event manager persists through your scenes ? If no then you also need to make it a singleton. Also if that's not the case then maybe you are losing reference to them, so you need to keep track of buttons GOs

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: Dont destroy on load--GUI [SOLVED]
« Reply #2 on: February 06, 2017, 11:27:55 AM »
Thanks: it was the lack of event manager in second scene that was the problem!