deleteStopsCallbacks
Set whether to continue or stop the proccesing of collision callbacks if any of the objects involved in the collision are deleted.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public static bool deleteStopsCallbacks { get; set; }
Remarks
During a collision callback, if either a Collider2D or Rigidbody2D that is taking part in that particular callback is deleted then this property controls whether callbacks will continue for this contact or not.
Additional Resources: Collider2D, Rigidbody2D.