기술 자료

Unity Engine

Unity Engine

GetIgnoreCollision(Collider2D, Collider2D)

Checks whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public static bool GetIgnoreCollision(Collider2D collider1, Collider2D collider2)

Parameters

collider1

The first Collider to compare to collider2.

collider2

The second Collider to compare to collider1.

Returns

Type

Description

boolWhether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.