playMaker

Author Topic: Solved: Game objects go missing from FSM after scene loads  (Read 1440 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Solved: Game objects go missing from FSM after scene loads
« on: April 21, 2019, 05:48:01 PM »
Hi,

I've noticed that since moving off Nested Prefabs to Unity's Prefab system, I've noticed Fsm's having trouble storing some game objects.

Playmaker : 1.9.0.p4
Unity: 2018.3.0f2

I create gameobject from the FSM and store it. If I run the scene from editor it loads/stores fine, but if the scene with the fsm loads from another scene, it says this game object is missing, along with not being able to find a few other game objects.

I don't know if this is a Unity thing or a Playmaker thing? Should I move to later version of Unity?

Anyone else had these problems?

Cheers,
Josh
« Last Edit: April 22, 2019, 04:56:33 AM by autumnboy »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Game objects go missing from FSM after scene loads
« Reply #1 on: April 21, 2019, 10:39:30 PM »
It sounds like the Unity limitation where a prefab can't reference a scene object.

There's an article that might help:
https://hutonggames.fogbugz.com/f/page?W1707

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Game objects go missing from FSM after scene loads
« Reply #2 on: April 22, 2019, 04:07:25 AM »
Nah, I use Find Object to search and store objects already in the scene and the game object created is only created from the fsm and stored from the PM action as the scene loads.


EDIT: Turns out it was just an incorrect rogue event allowing things to pass through before they were supposed too.

Thanks,
Josh
« Last Edit: April 22, 2019, 04:56:16 AM by autumnboy »