Type IPointerClickHandler expected Button received. i:0. Wrong Key Length

Hi everyone,
here is my problem,
I did create a simple Menu with a button.
Onclick() event should trigger a "public void Login()" from an other gameObject in the scene but here is the issue. When I click on the button I get this error message:
Type IPointerClickHandler expected Button received. i:0. Wrong Key Length

I did search in the new documentation and didn't see what I am doing wrong.
Anyone to help me?
Thanks.

1 Like

Ok sorry for posting that, the error came from my Login function, the fact that the console didn't point me to this function completely diturbed me.
Resolved.


Hi, yes. We have improved the error message and it will be better in future releases (it will show you the real stack trace).

1 Like