# SetDrawDepth3D(Vector3)

> Sets the draw depth from a 3D position, using the axis that matches the current transform plane.

## Definition

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

```csharp
public void SetDrawDepth3D(Vector3 position)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The 3D position to take the draw depth from.

### Remarks

The relevant axis is taken from the position using the current [PhysicsWorld.transformPlane](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplane-1.md). If [PhysicsWorld.TransformPlane.Custom](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplane/custom.md) is used, the draw depth is set to zero. See [PhysicsWorld.drawDepth](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawdepth.md).
