Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Maxi on December 17, 2023, 05:24:47 PM

Title: Templates using Global Variables referencing Scene Objects
Post by: Maxi 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!
Title: Re: Templates using Global Variables referencing Scene Objects
Post by: djaydino 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.
Title: Re: Templates using Global Variables referencing Scene Objects
Post by: Maxi on December 19, 2023, 06:05:30 PM
Alright thank you!