# transparencySortAxis

> An axis that describes the direction along which the distances of objects are measured for the purpose of sorting.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Vector3 transparencySortAxis { get; set; }
```

### Remarks

If the [TransparencySortMode](/engine/6000.3/script-reference/unityengine/transparencysortmode.md) of the [Camera](/engine/6000.3/script-reference/unityengine/camera.md) or [GraphicsSettings](/engine/6000.3/script-reference/unityengine/rendering/graphicssettings.md) are set to [TransparencySortMode.CustomAxis](/engine/6000.3/script-reference/unityengine/transparencysortmode/customaxis.md), the rendering pipeline evaluates the distance of the object along the axis specified by this property.

This is used for sorting Renderer components when other, higher priority, criterias fail to distinguish the render order.

This is a useful technique in 2.5D games or isometric games where the [SpriteRenderer](/engine/6000.3/script-reference/unityengine/spriterenderer.md)s need to be sorted along the vertical screen axis. For this specific use case, set the TransparencySortMode to [TransparencySortMode.CustomAxis](/engine/6000.3/script-reference/unityengine/transparencysortmode/customaxis.md) and set the axis to (0.0f, 1.0f, 0.0f).
