Version: 2021.1
public float maxDepth ;

描述

设置接触筛选器,使其筛选的结果仅包含 Z 坐标(深度)小于该值的 Collider2D

仅在 useDepth 为 true 时使用。如果将 maxDepth 设置为 -Mathf.InfinityMathf.Infinity,则使用尽可能最大的深度。

另请参阅:Transform