- Home /
Question by
hwf · Feb 22, 2016 at 12:40 PM ·
meshcolliderquadonmouseenter
OnMouseEnter of two overlapping quads
I have one quad overlapping another quad in my game. Is there a way to only trigger the OnMouseEnter function of the quad that is rendered later? What mesh should I select for the mesh colliders of these two quads?
Comment
Best Answer
Answer by hwf · Feb 22, 2016 at 09:52 PM
I have solved this by setting gameObject.layer. http://answers.unity3d.com/questions/25366/can-i-enabledisable-a-collider-so-it-willwont-dete.html would help if you have similar problem.
Your answer
![](https://koobas.hobune.stream/wayback/20220612065132im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Using MeshCollider with Quads 1 Answer
Mesh combine on block world 0 Answers
How to draw beams? 2 Answers
Can you tint a specific part of a 2D Sprite? 1 Answer
camera and positiong problems 1 Answer