Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rstralberg on June 30, 2013, 06:11:18 AM

Title: [SOLVED] Where is the script code stored
Post by: rstralberg on June 30, 2013, 06:11:18 AM
I wonder where the script code is stored.
The reasons why is two:

1. Backup
2. Use same FSM code in another project

Title: Re: Where is the script code stored
Post by: jeanfabre on July 01, 2013, 01:30:45 AM
Hi,

 PlayMaker doesn't produce scripts out of your Fsm. it simply leaves in the PlayMaker Fsm component attached to the gameObject ( or in templates assets if you use them).

So simply export your GameObject ( as prefabs likely), and you can import them in other projects.

 don't forget that Unity will not detect if you are using custom actions, so don't rely on Unity dependancy check if you import a lot of assets. you will need to manually add to the package your custom actions. For this, I have a very simply way out. I put ALL my custom actions in one folder ( PlayMaker Custom Actions), and I always include that folder when I export prefabs using playmaker, then I am safe.

As for backup. Back it up just like you want to back up your meshes or your scenes, it's a regular Unity asset.

bye,

 Jean
Title: Re: Where is the script code stored
Post by: rstralberg on July 01, 2013, 08:55:23 AM
Thanks jeanfabre.
Good suggestion. I will do the same then.
Title: Re: [SOLVED] Where is the script code stored
Post by: Jake on July 01, 2013, 04:28:07 PM
It should be an easy-to-implement feature for Alex to provide an alternative "Select Dependencies" button with PlayMaker. I guess PM knows a way to list all used actions in a selection, and the resulting scripts can be joined with the usual "Select Dependencies" that's available via Unity API.

I should have written that in the feature request forum, right?  ;D
Title: Re: [SOLVED] Where is the script code stored
Post by: jeanfabre on July 02, 2013, 02:39:40 AM
Hi,

 I mentionned this as well, I guess it's not a question of difficulty but time and priority. I agree, it is important to get this sorted.

bye,

 Jean