기술 자료

Unity Engine

Download Unity

Unity Engine

SetLayerMask(LayerMask)

Sets the ContactFilter2D.layerMask filter property using the layerMask parameter provided and also enables layer mask filtering by setting ContactFilter2D.useLayerMask to true.
읽는 시간 1분최근 업데이트: 2달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void SetLayerMask(LayerMask layerMask)

Parameters

layerMask

The value used to set the ContactFilter2D.layerMask.