Automatic
Destroys the bodies and worlds whose owner does not survive the load, apart from the default world, which is always kept.
Read time 1 minuteLast updated a day ago
Definition
- Type: Field
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
Automatic = 0
Remarks
When nothing at all survives the load, the default world is also reset, so a scene behaves the same way every time it loads. When something survives, the default world is not reset. A script that survives the load can still hold a handle to a destroyed body, and after a reset a new body could take that body's handle, so the script would act on the wrong body.