Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Rebooter on August 31, 2019, 04:14:51 AM

Title: Unity 2019.2: Directives not working
Post by: Rebooter on August 31, 2019, 04:14:51 AM
I'm trying to use the GetAnimatorCurrentStateInfo action in Unity 2019.2 (Playmaker 1.9.0.p18). The directive at the top of the source file:

#if UNITY_5_3_OR_NEWER || UNITY_5
#define UNITY_5_OR_NEWER
#endif

doesn't seem to be working. None of the fields with the '#if UNITY_5_OR_NEWER' directive are visible on the action's inspector.

Edit: I copied the action to a new file and edited out all of the defines and it works, but I don't understand why the original doesn't work.
Title: Re: Unity 2019.2: Directives not working
Post by: jeanfabre on November 12, 2019, 01:33:16 AM
Hi,

 I checked and it worked, maybe you were using a beta version? I have 2019.2.9f1 and all is good.

Bye,

 Jean