I have some objects that I need to be able to click on and get mouse-click messages, but I don’t want my player to be obstructed by them. I need a MeshCollider to get the clicks (right?) but this blocks my player.
Is there a way around that?
I have some objects that I need to be able to click on and get mouse-click messages, but I don’t want my player to be obstructed by them. I need a MeshCollider to get the clicks (right?) but this blocks my player.
Is there a way around that?
Use Physics.IgnoreCollision (and you want to stay away from mesh colliders where feasible; use primitive colliders instead).
–Eric
Many thanks. FWIW my mesh is just a quad.
In that case you should use a box collider.
–Eric