文档

Unity Engine

Unity Engine

selectedDrawing

Controls whether this shape is drawn individually when the world is drawn.
阅读时间1 分钟最后更新于 22 天前

Definition

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

Remarks

The shape is only drawn when the world draw options include PhysicsWorld.DrawOptions.SelectedShapes or PhysicsWorld.DrawOptions.SelectedShapeBounds; changing the draw options never changes this state. The state persists until set to false, the shape is destroyed, or PhysicsWorld.ClearDrawSelected clears the whole world. The shape must also have PhysicsShape.worldDrawing enabled to be drawn.