sceneLoadMode
The bodies and worlds destroyed when a scene loads in Single mode, as set in the project settings.
阅读时间1 分钟最后更新于 5 天前
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.