SimulationMode2D
A selection of modes that control when Unity executes the 2D physics simulation.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public enum SimulationMode2D
Remarks
Additional Resources: Physics2D.simulationMode.
Fields
Value | Description |
|---|---|
| FixedUpdate | Use this enumeration to specify to Unity that it should execute the physics simulation immediately after the MonoBehaviour.FixedUpdate(). |
| Script | Use this enumeration to specify to Unity that it should execute the physics simulation manually when you call Physics2D.Simulate. |
| Update | Use this enumeration to specify to Unity that it should execute the physics simulation immediately after MonoBehaviour.Update(). |