playMaker

Author Topic: Unity UI addon error[SOLVED]  (Read 12429 times)

SteveB

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Unity UI addon error[SOLVED]
« Reply #15 on: January 08, 2015, 10:24:41 AM »
I'm getting this exact same issue but with 'AI for Mecanim' (and the uGUI addon for Playmaker); several button capture scripts have identical names for example, such as GetButton.cs...

...so with namespace conflicts like this what is the safest solution?

The error is:

Assets/PlayMaker uGui/Proxies/PlayMakerUGuiComponentProxy.cs(257,57): error CS1061: Type `Button' does not contain a definition for `onClick' and no extension method `onClick' of type `Button' could be found (are you missing a using directive or an assembly reference?)

Thanks guys

EDIT:

Also yes, deleting /Playmaker uGUI fixes the issue, I want to be able to use Playmaker uGUI so...

« Last Edit: January 08, 2015, 10:50:21 AM by SteveB »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Unity UI addon error[SOLVED]
« Reply #16 on: January 12, 2015, 01:58:20 AM »
Hi,

 yeah, let me address this. You have a good case here.

Can you import the package attached, it's just this script with a different way to get to the Unity UI, and I think it will make this kind of conflict less likely.

 If that works, I'll spread this change on the github rep.

 Bye,

 Jean

SteveB

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Unity UI addon error[SOLVED]
« Reply #17 on: January 12, 2015, 08:16:58 AM »
That appears to have done it, or at the very least I receive no errors now. :D

Good job yet again Jean!

-Steven