Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: sonja_a on October 25, 2014, 03:56:37 PM
-
Hi Playmakers
a weird problem has just come up.
I would create a button that has two states: push do action 1 and change button image; push again to restore game object to original state.
This is easy and took all of 5 mins.
Now the weird part. I would save the scene, then switch to another scene in same project, make edits and save. Then I would return to the original scene, the one with the pushable button, and the button no longer works.
I have repeated the process several times (remove FSM, create new FSM with push button, recreate all the variables etc). and the same problem occurs. I've even tested it by building the push button FSM, saving scene, saving project, where the button happily works. Then close Unity and restart Unity, and the non-working problem would occur.
Any thoughts?
Thanks in advance
-Sonja
ps: have been teaching Unity for 2 years and have been using PM for a little over 1 year
-
Is the button a prefab that needs updating so that it works in other scenes? I've had similar things happen with prefabs that usually have things missing in fields in new scenes-
-
thanks for the reply,
unfortunately, there was no prefab involved. It was just a button, and I've also removed the image file to test if that was the issue, but no luck.
If I figure it out, I'll post the solution.