Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: pietwelve on June 07, 2014, 07:23:51 PM

Title: convert FSM to script [SOLVED]
Post by: pietwelve on June 07, 2014, 07:23:51 PM
Hi,
Once a FSM is created on a gameObject, is there a way to convert it into a regular C# or java script ? So its FSM would be replaced by its equivalent script component ...
I've tried to find the answer in the manual without success.
Thanks
Alain
Title: Re: convert FSM to script
Post by: Alex Chouls on June 07, 2014, 08:04:53 PM
No, there's no way to do that. A PlayMakerFSM is a script component (MonoBehaviour) that stores an FSM as data. Converting that to a standalone script would be complicated... and generally that kind of machine generated code is not very easy to read/edit!

However actions are regular scripts that are run by the FSM framework and are very easy to read/edit/create. The system is a high level framework (FSM) used to organize low level code (Actions). The idea is that it's easier to edit, maintain and debug than a single monolithic script...
Title: Re: convert FSM to script
Post by: pietwelve on June 07, 2014, 08:22:11 PM
Thanks for your fast and accurate answer !