public Collider collider ;

설명

The Collider that was hit.

This property is null if the ray hit nothing and not-null if it hit a Collider.

no example available in C#