# callbacksOnDisable

> Use this to control whether or not the appropriate OnCollisionExit2D or OnTriggerExit2D callbacks should be called when a Collider2D is disabled.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static bool callbacksOnDisable { get; set; }
```

### Remarks

If the [Collider2D](/engine/6000.7/script-reference/unityengine/collider2d.md) being disabled has at least a single contact with another [Collider2D](/engine/6000.7/script-reference/unityengine/collider2d.md) then with this property set to true, a callback would be produced.  With the property set to false, no callback would be produced.

Only "OnCollisionExit2D" or "OnTriggerExit2D" will be called by disabling a [Collider2D](/engine/6000.7/script-reference/unityengine/collider2d.md).
