playMaker

Author Topic: Templates using Global Variables referencing Scene Objects  (Read 580 times)

Maxi

  • Playmaker Newbie
  • *
  • Posts: 41
Templates using Global Variables referencing Scene Objects
« on: December 17, 2023, 05:24:47 PM »
Hi,
I recently started to use FSM Templates and the 'Run FSM' Action which I find rather helpful. I understand that I can't reference Scene Objects, though I have defined a bunch of Global Variables which point toward Scene Objects and which are initiated on Scene load.
Now, everything works fine but every so often PlayMaker decides to run Error Messages stating that 'Prefabs should not contain references to scene Objects' (though I am not working with Prefabs, just Templates). The amount of those messages varies - sometimes its just my current FSM, sometimes all of them - and then they disappear again which makes me think that it's some kind of bug?!
Do you think I need to worry about may save/ load later in the development cicle?
Thanks a lot!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: Templates using Global Variables referencing Scene Objects
« Reply #1 on: December 19, 2023, 08:10:19 AM »
Hi.
you can ignore the message.

but be carefull with using many run fsms with physics based stuff in it. (they need to add, (for example FixedUpdate / CollissionStay / other) components @runtime.

Maxi

  • Playmaker Newbie
  • *
  • Posts: 41
Re: Templates using Global Variables referencing Scene Objects
« Reply #2 on: December 19, 2023, 06:05:30 PM »
Alright thank you!