Version: 2022.1
Method group is Obsolete

Physics2D.changeStopsCallbacks

切换到手册
Obsolete public static bool changeStopsCallbacks ;

描述

Set whether the reporting of collisions callbacks immediately stops if any of the objects involved in the collision are deleted or moved.

此属性用于控制以下情况:在碰撞回调期间,如果删除或移动了参与该特定回调的 Collider2D 或 Rigidbody2D,是否继续该接触的回调。

另请参阅:Collider2D、Rigidbody2D。