기술 자료

Unity Engine

Download Unity

Unity Engine

layerMask

Sets the contact filter to filter the results that only include Collider2D on the layers defined by the layer mask.
읽는 시간 1분최근 업데이트: 2달 전

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public LayerMask layerMask

Remarks

This field takes effect if ContactFilter2D.useLayerMask is true.
Additional Resources: LayerMask.