sceneLoadMode
The bodies and worlds destroyed when a scene loads in Single mode, as set in the project settings.
Read time 1 minuteLast updated 17 hours ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsWorld.SceneLoadMode sceneLoadMode { get; }
Remarks
This is the value of PhysicsCoreSettings2D.sceneLoadMode in the project settings, and you cannot change it from a script. See PhysicsWorld.SceneLoadMode for what each value does.