Version: 2022.1
public int maxHits ;

描述

射线可以命中的最大碰撞体数。

Note that currently the RaycastCommand doesn't return more than one hit, regardless of the maxHits property.