文档

Unity Engine

Unity Engine

IgnoreEmptyScenes

Define whether or not to skip the simulation if there are no active physics objects in the scene.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
IgnoreEmptyScenes = 2

Remarks

Skips the SimulationStage.RunSimulation stage if there are no active Rigidbodies, ArticulationBodies, or Colliders in the scene. This option has no effect if the SimulationStage.RunSimulation stage is not specified in the PhysicsScene.RunSimulationStages call.