文档

Unity Engine

Unity Engine

alwaysDrawWorlds

Controls if worlds are always drawn independent of whether rendering is currently active or not as specified by PhysicsWorld.renderingMode. When true, world drawing is always active and a PhysicsEvents.WorldDrawResults event is produced containing the PhysicsWorld.DrawResults. When false, world drawing only occurs depending on the PhysicsWorld.renderingMode setting. CAUTION: Drawing the world has a performance cost associated with it therefore when using this without rendering, that cost can become hidden.
阅读时间1 分钟最后更新于 25 天前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool alwaysDrawWorlds { get; set; }