playMaker

Author Topic: FSM Losing Variable References  (Read 2062 times)

sgoon

  • Playmaker Newbie
  • *
  • Posts: 8
FSM Losing Variable References
« on: May 03, 2012, 07:44:12 PM »
I have a very strange problem, and I'm hoping someone will have run into it before. All of the sudden, when I play my scene, one of my FSMs is losing most of its action-variable references, causing null reference errors.

When I look at the FSM, the Action variables that are set to Specify Game Object, and then referenced to a global variable suddenly now say None, but the global variable itself is still linked fine. If I close the playmaker editor and run the scene (or run it in stand alone mode), it works perfectly.

Any ideas? Making a simple example scene may prove tricky, as there are a lot of dependencies, so any ideas of things to try before I do that would be great. If not, I'm not against just sending my project over (it's a little over 300mb) if someone is willing to take a look. Thanks.

-Sean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: FSM Losing Variable References
« Reply #1 on: May 04, 2012, 08:49:29 PM »
A common problem is prefabs referencing scene objects. Unity doesn't save scene object references in prefabs. Even if you manage to get the UI to do it, the data isn't actually saved.

You could also try the new 1.3.3 update to see if it fixed the problem.

Remember to BACKUP your project before importing the update!