playMaker

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

Jamesk

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
platform define - true if playmaker is installed? [SOLVED]
« on: July 17, 2016, 07: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, 03:13:35 PM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: platform define - true if playmaker is installed?
« Reply #1 on: July 21, 2016, 12: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
    • View Profile
Re: platform define - true if playmaker is installed?
« Reply #2 on: July 21, 2016, 09:00:57 AM »
Great, thanks!  :)