Hamid Mughal
Hamid Mughal

Reputation: 11

detect Ray cast without having Collider on Game Object

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

Answers (1)

Sven Viking
Sven Viking

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

Related Questions