- Home /
Question by
VRARAPPS · Dec 30, 2017 at 12:28 PM ·
unity 5raycastspritecollider2d
Click/Touch on Different part of sprite detected ?
Hello All,
I have a image in UI Panel ... I want to click on specific part of that image to perform some action. I want to make like 10 Specific parts on same UI Image.
I made 10 diffrent 2D Box Colliders. But don't know hot to check that which collider is hitting. I found RaycastHit.textureCoord Function, But don't know how to do it.
Please tell me how to do this ??
Thanks !
Comment
Your answer
Follow this Question
Related Questions
RaycastHit2D.collider is null - why? 1 Answer
Cutting a Sprite 0 Answers
Get 2D Collider with 3D Ray 2 Answers
Physics 2d raycaster from EventSystems for overlapped colliders 0 Answers
Use sprite mesh for filled image 1 Answer