RaySnap(Ray)
Casts ray against the Scene and reports whether an object lies in its path.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static object RaySnap(Ray ray)
Parameters
Returns
Type | Description |
|---|---|
| Object | A boxed RaycastHit, null if nothing hit it. |
Remarks
The ray only returns intersections with GameObjects that have a collider component attached to them.