Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetIgnoreCollision(Collider, Collider)

Checks whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public static bool GetIgnoreCollision(Collider collider1, Collider 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.