Version: 2023.2

SimulationOption.IgnoreEmptyScenes

切换到手册

描述

Define whether or not to skip the simulation if there are no active physics objects in the scene.

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.