Version: 2022.3
언어: 한국어
public static object RaySnap (Ray ray);

반환

object A boxed RaycastHit, null if nothing hit it.

설명

Casts ray against the Scene and reports whether an object lies in its path.

The ray only returns intersections with GameObjects that have a collider component attached to them.