Closed joaomcarlos closed 9 years ago
Button is in UnityEngine.UI
and Button has onClick.
Hmn..., What is your project's target platform?
Currently is set to MacOSX x86_64
I think error message tell UnityEngine.UI.Button doesn't have onClick event. But of course Button has onClick.
Can you see Button's metadata at MonoDevelop(or XamarinStudio)?
Here is my metadata on Visual Studio(Windows)
I cannot reproduce this issue.
But I have noticed some things:
After hours of searching, I actually found out that I had another class named Button, it was a class that was a Monobehavior that helped me with setting button names and labels from a single position, literary a public string that ran in editor to update the transform.name to "Button: "+btnName and label to btnName.
And somehow it was using that instead of UI.Button.
Sorry to waste your time and mine.
I'm happy to hear that.
//
Thank you movajr, Yes, I use Unity 5 Pro... I'll check free edition and will test .unitypackage next update.
Switching between Pro and Personal can be done by replacing the Unity_v5.x.ulf in C:\ProgramData\Unity. Running scenes created with licenseType:Pro in Unity Personal doesn't cause any errors.
Seems to be mainly a legal issue (or non-issue, it's confusing) when mixing licenses within a single company. See: http://forum.unity3d.com/threads/unity-heads-caveats-of-license-changes-need-clarity-title-changed-to-prove-its-a-serious-thread.310275/
Hello.
I got compile errors on Unity5.0.0.f4, in both examples as well in other places where onButtonClick is used.
Assets/UniRx/Scripts/UnityEngineBridge/UnityUIComponentExtensions.cs(35,27): error CS1061: Type
Button' does not contain a definition for
onClick' and no extension methodonClick' of type
Button' could be found (are you missing a using directive or an assembly reference?)I just imported the package, its same in the package from asset store and from github directly.