Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: Jamesk on July 17, 2016, 10:02:24 PM

Title: platform define - true if playmaker is installed? [SOLVED]
Post by: Jamesk on July 17, 2016, 10:02:24 PM
Hi,

I'm developing an asset store plugin that will controllable with my custom playmaker actions or just regular C# scripts. User can choose.

I would like to place my playmaker custom actions within a platform define type check so if a user without playmaker downloads my asset, it won't cause errors (since FSM variables won't exist, etc).

Is this possible? Or does it already exist and I missed it?

Thank you,

James
Title: Re: platform define - true if playmaker is installed?
Post by: jeanfabre on July 21, 2016, 03:14:18 AM
Hi,

Yes, PlayMaker 1.8 fills the defined symbols for the project when it's installed, so your actions could work with this.

(http://i.imgur.com/5J0JZcj.png)

then within your action, you only enable the code if PLAYMAKER defined.


Bye,

 Jean
Title: Re: platform define - true if playmaker is installed?
Post by: Jamesk on July 21, 2016, 12:00:57 PM
Great, thanks!  :)