文档

Unity Engine

Unity Engine

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

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