Reputation: 11
so I'm trying to detect an object without having collider on that object but unfortunately I'm stuck on it ;
Upvotes: 1
Views: 3247
Reputation: 2720
With the exception of a graphics raycast for UI elements on a canvas and possibly Plane.Raycast which is specific to planes, Unity Raycasts hit colliders and nothing else. If you want an object to be hit by raycasts you need to add a collider.
Upvotes: 3