- Home /
3D text with box collider Android
Hey there, I just made an main menu with 3d text and box coliders but I'm wondering, will it work with android to just click on them with your fingers or do I haft to have something with detection on em?
Answer by DaveA · Sep 08, 2011 at 08:19 PM
OnMouseDown does not work on mobile (at least, historically does not, I don't know if they ever fixed it). Be safe and use a raycast of a ray from the screen position (converted to world coords via the camera) and see if it hits your object. http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html
Your answer
Follow this Question
Related Questions
Internal collisions 1 Answer
Collider going through walls with box collider.. 1 Answer
TextMesh doesn't work on Android 0 Answers
OnParticleCollision() problem 1 Answer
2D box colliders gap 0 Answers