Version: 2022.3
言語: 日本語
public static object RaySnap (Ray ray);

戻り値

object 何もヒットしなければ null を返す囲まれた RaycastHit

説明

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.