PhysicsCallbacks.ContactCallbackTargets
Contains all the contact callback targets returned from PhysicsWorld.GetContactCallbackTargets.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
- Implements: IDisposable
public readonly struct PhysicsCallbacks.ContactCallbackTargets : IDisposable
Properties
Property | Description |
|---|---|
| BeginCallbackTargets | The begin targets. |
| EndCallbackTargets | The end targets. |
Methods
Method | Description |
|---|---|
| Dispose | Dispose of any allocated memory. This must be called if any targets are returned otherwise memory leaks will occur. |
Structs
Struct | Description |
|---|---|
| PhysicsCallbacks.ContactCallbackTargets.ContactBeginTarget | Contact begin event target for callbacks. |
| PhysicsCallbacks.ContactCallbackTargets.ContactEndTarget | Contact end event target for callbacks. |