Method onRaycastHit onRaycastHit(GameObject) Result detection of each frame of ray detection Declaration public virtual void onRaycastHit(GameObject go) Parameters Type Name Description GameObject go the object the raycast hit