playMaker

Author Topic: FSM template error  (Read 653 times)

18LSC

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
FSM template error
« on: April 12, 2018, 12: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.

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 1001
    • View Profile
    • Fat Pug Studio
Re: FSM template error
« Reply #1 on: April 12, 2018, 11:28:11 PM »
It's an issue because it won't work, that's how Unity functions, no prebab/scene objects cross reference.

18LSC

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
Re: FSM template error
« Reply #2 on: April 13, 2018, 01:50:40 AM »
Ok, how do I fix it/avoid it?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4620
    • View Profile
    • jinxtergames
Re: FSM template error
« Reply #3 on: April 13, 2018, 02:29:14 AM »
Hi,
Maybe this video can get you in the right direction :


18LSC

  • Playmaker Newbie
  • *
  • Posts: 32
    • View Profile
Re: FSM template error
« Reply #4 on: April 13, 2018, 04:57:02 AM »
Hi,
Maybe this video can get you in the right direction :

Cheers ill have a look