Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


selectedDrawing

Controls whether this body is drawn individually when the world is drawn.
Read time 1 minuteLast updated 13 days ago

Definition

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

Remarks

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