playMaker

Author Topic: platform define - true if playmaker is installed? [SOLVED]  (Read 2604 times)

Jamesk

  • Playmaker Newbie
  • *
  • Posts: 2
platform define - true if playmaker is installed? [SOLVED]
« 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
« Last Edit: July 21, 2016, 06:13:35 PM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: platform define - true if playmaker is installed?
« Reply #1 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.



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


Bye,

 Jean

Jamesk

  • Playmaker Newbie
  • *
  • Posts: 2
Re: platform define - true if playmaker is installed?
« Reply #2 on: July 21, 2016, 12:00:57 PM »
Great, thanks!  :)