playMaker

Author Topic: [SOLVED] Where is the script code stored  (Read 1937 times)

rstralberg

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
[SOLVED] Where is the script code stored
« on: June 30, 2013, 03: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

« Last Edit: July 01, 2013, 05:55:43 AM by rstralberg »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: Where is the script code stored
« Reply #1 on: June 30, 2013, 10:30:45 PM »
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

rstralberg

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Where is the script code stored
« Reply #2 on: July 01, 2013, 05:55:23 AM »
Thanks jeanfabre.
Good suggestion. I will do the same then.

Jake

  • Junior Playmaker
  • **
  • Posts: 61
    • View Profile
    • Fluffy Underware
Re: [SOLVED] Where is the script code stored
« Reply #3 on: July 01, 2013, 01: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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: [SOLVED] Where is the script code stored
« Reply #4 on: July 01, 2013, 11:39:40 PM »
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