I'm making something targeted to the iPad which obviously does not support a mouse, so how do I check when my buttons drawn during OnGUI() are poked?
Answer by Jessy
Feb 06, 2011 at 02:29 PM
There's nothing that refers to a mouse in any GUI function. Have you tried it and actually had a problem? Other than UnityGUI being slow, it worked fine.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
I'm trying to translate this code to work for touch devices
Touching an object with your finger?
Magnifying Glass Unity iOS
Best way to get to get touch inputs?
OnMouseDown works fine for iOS