Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: autumnboy on April 21, 2019, 05:48:01 PM

Title: Solved: Game objects go missing from FSM after scene loads
Post by: autumnboy 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
Title: Re: Game objects go missing from FSM after scene loads
Post by: Alex Chouls 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
Title: Re: Game objects go missing from FSM after scene loads
Post by: autumnboy 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