# elementDepth

> Controls the element depth. When using custom drawing of geometry or primitive shapes there is no reference to the orthogonal axis used with respect to the current _transformPlane. The element depth is in world-space and for each transform plan is defined as: Element depth is rendered along the Z axis when using PhysicsWorld.TransformPlane.XY. Element depth is rendered along the Y axis when using PhysicsWorld.TransformPlane.XZ. Element depth is rendered along the X axis when using PhysicsWorld.TransformPlane.ZY. You should set the element depth before performing any custom draw. The element depth will be reset to zero when rendering is complete.

## Definition

* **Type:** Property
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public float elementDepth { get; set; }
```
