ドキュメント

Unity Engine

Unity Engine

useOutsideDepth

Sets the contact filter to filter within the ContactFilter2D.minDepth and ContactFilter2D.maxDepth range, or outside that range.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool useOutsideDepth

Remarks

ContactFilter2D.useOutsideDepth uses the range between ContactFilter2D.minDepth and ContactFilter2D.maxDepth to filter depth. Set
useOutsideDepth
to true to only return object depth outside that range. Set
useOutsideDepth
to false to only return object depth within that range. It is false by default.