기술 자료

Unity Engine

Unity Engine

GetIgnoreLayerCollision(int, int)

Checks whether collisions between the specified layers be ignored or not.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public static bool GetIgnoreLayerCollision(int layer1, int layer2)

Parameters

layer1

ID of first layer.

layer2

ID of second layer.

Returns

Type

Description

boolWhether collisions between the specified layers be ignored or not.

Remarks

Additional Resources: Physics2D.IgnoreLayerCollision.