sceneLoadMode
The bodies and worlds destroyed when a scene loads in Single mode, or when you open a scene in the Editor.
Read time 1 minuteLast updated a day ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsWorld.SceneLoadMode sceneLoadMode { get; set; }
Remarks
A body or world owned by a GameObject that the load keeps, or by a component on one, is never destroyed. See PhysicsWorld.SceneLoadMode for what each value does and which GameObjects the load keeps.