Version: 2021.1

Physics2D.GetIgnoreCollision

切换到手册
public static bool GetIgnoreCollision (Collider2D collider1, Collider2D collider2);

参数

collider1 The first Collider to compare to collider2.
collider2 The second Collider to compare to collider1.

返回

bool 碰撞检测系统是否忽略 collider1collider2 之间的所有碰撞/触发器。

描述

检查碰撞检测系统是否忽略 collider1collider2 之间的所有碰撞/触发器。