Version: 2023.2

SimulationMode2D

enumeration

切换到手册

描述

A selection of modes that control when Unity executes the 2D physics simulation.

Additional resources: Physics2D.simulationMode.

变量

FixedUpdateUse this enumeration to specify to Unity that it should execute the physics simulation immediately after the MonoBehaviour.FixedUpdate.
UpdateUse this enumeration to specify to Unity that it should execute the physics simulation immediately after MonoBehaviour.Update.
ScriptUse this enumeration to specify to Unity that it should execute the physics simulation manually when you call Physics2D.Simulate.