Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: fued on September 04, 2013, 07:28:32 AM
-
Hi, i just downloaded the newest version of unity on my mac, and installed ngui on it.
the examples work fine with the keyboard, but the mouse click isnt working on the buttons.
-
Hello, good choice you made with NGUI. But in order for us to help, you have to give more details.
1- Is there a collider attached to the button?
2- if so, did you make sure that it's not behind the button?
3- if you did everything right and still your button isn't receiving input, your best course of action is to enable/check the "Debug" option in the UICamera script attached to your UI camera. Then, you'll get feedback to what the camera is hitting / what is in front of it.
-
ok, thought it was pretty clear but after re-reading it maybe it wasnt haha
I installed the latest version of unity on my mac
I installed NGUI
I opened Example 1 from the examples tab
The mousehover and mouseclick events are not firing( one of the other examples had keyboard movement, and that was working fine)
The example has a collider attached to the button, i tried moving it forwards once it didnt work, didnt seem to make any difference.
I enabled debug mode, but i didnt get any feedback whatsoever when clicking(new to unity, i assumed this feedback would be in the console?)
-
Hmm, this is strange. No not in the console, you should see it in the top left corner of your game screen, a string telling you what collider the ray from the camera is hitting.
-
Raycast Hit Triggers in physics settings.
Check the FAQ sticky post.
-
Make sure you got your "EventRecieverMask" in your UICamera set to whatever layer your gui camera should see (your gui cam's culling mask).