SimulationMode2D
A selection of modes that control when Unity executes the 2D physics simulation.
Read time 1 minuteLast updated 4 days ago
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(). |