- Home /
Question by
103zephyr · Aug 04, 2014 at 04:01 AM ·
collideronmousedown
Want collider to detect mouse clicks but not player collision
Hi I want colliders to use OnMouseDown without blocking the player's movement... how can I do that? I tried making them triggers but OnMouseDown seems to stop working.
Comment
Best Answer
Answer by DontShooot · Aug 04, 2014 at 04:08 AM
You can set different layers to collider and player and disable collision between them http://docs.unity3d.com/Manual/LayerBasedCollision.html