playMaker

Author Topic: PM version-dependent code?  (Read 1454 times)

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
PM version-dependent code?
« on: July 31, 2015, 07:34:56 AM »
I'm writing actions for PM 1.8 which, in part, make use of the new array variable.  But I'd like the non-array parts to still be usable in 1.7.  Is there any way to put a directive in the code to select by version?

For Unity, you can do:
Code: [Select]
#if UNITY_4_6
// Unity 4.6 code
#else
// Other code
#endif

Is there something like this for PlayMaker?

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: PM version-dependent code?
« Reply #1 on: July 31, 2015, 06:18:47 PM »
Hi,
i think you should ask on the beta forum :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PM version-dependent code?
« Reply #2 on: August 03, 2015, 02:09:39 AM »
Hi,

 This is something that requires a custom action per preprocessor. I created an action PlatformDependentEvents, you can get it on the Ecosystem. But there is an issue on the latest u5 using IL2cpp that I am currently trying to fix.

I am currently working on a series of wizards that will create scripts automatically, it will allow you to create enums, Unity Event redirection to PlayMaker events, I'll add also a wizard to generate Preprocessor custom actions.


 Bye,

 Jean