Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


drawDepth

The depth this body is drawn at, in world space, along the axis perpendicular to the world's transform plane.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public float drawDepth { readonly get; set; }

Remarks

The depth is only used when the body has no PhysicsBody.transformObject. See PhysicsBody.drawDepth.