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?

1 Answer

1

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