Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 18LSC on April 12, 2018, 03:47:31 PM

Title: FSM template error
Post by: 18LSC on April 12, 2018, 03:47:31 PM
I'm getting an error I never encountered before.

I created a FSM template that I intend to paste onto a bunch of interactable objects.
Each FSM will simply set a bool on an animation to change a reticle icon to on or off depending if the player is looking at the item or not.

"Prefabs should not reference scene objects, only other prefabs and project resources. References to scene objects will be lost on save/load!"

I don't understand what this means and why it's an issue? :/
This FSM will reference a scene object because that's what the animation is on.
Title: Re: FSM template error
Post by: Fat Pug Studio on April 13, 2018, 02:28:11 AM
It's an issue because it won't work, that's how Unity functions, no prebab/scene objects cross reference.
Title: Re: FSM template error
Post by: 18LSC on April 13, 2018, 04:50:40 AM
Ok, how do I fix it/avoid it?
Title: Re: FSM template error
Post by: djaydino on April 13, 2018, 05:29:14 AM
Hi,
Maybe this video can get you in the right direction :

Title: Re: FSM template error
Post by: 18LSC on April 13, 2018, 07:57:02 AM
Hi,
Maybe this video can get you in the right direction :

Cheers ill have a look