RaySnap(Ray)
Casts ray against the Scene and reports whether an object lies in its path.
阅读时间1 分钟最后更新于 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 only returns intersections with GameObjects that have a collider component attached to them.
ray