Version: 2023.2

SimulationMode

enumeration

切换到手册

描述

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

Additional resources: Physics.simulationMode.

变量

FixedUpdateUse this enumeration to instruct Unity to execute the physics simulation immediately after the MonoBehaviour.FixedUpdate.
UpdateUse this enumeration to instruct Unity to execute the physics simulation immediately after MonoBehaviour.Update.
ScriptUse this enumeration to instruct Unity to execute the physics simulation manually when you call Physics.Simulate.