# TransparencySortMode

> Transparent object sorting mode of a Camera.

## Definition

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

```csharp
public enum TransparencySortMode
```

## Remarks

By default, perspective cameras sort objects based on distance from camera position to the object center; and orthographic cameras sort based on distance along the view direction.

If you're making a 2D game with a perspective camera, you might want to use [TransparencySortMode.Orthographic](/engine/6000.3/script-reference/unityengine/transparencysortmode/orthographic.md) sort mode so that objects are sorted based on distance along the camera's view.

Additional Resources: [Camera.transparencySortMode](/engine/6000.3/script-reference/unityengine/camera/transparencysortmode.md).

## Fields

| Value                                                                                            | Description                                         |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------- |
| [CustomAxis](/engine/6000.3/script-reference/unityengine/transparencysortmode/customaxis.md)     | Sort objects based on distance along a custom axis. |
| [Default](/engine/6000.3/script-reference/unityengine/transparencysortmode/default.md)           | Default transparency sorting mode.                  |
| [Orthographic](/engine/6000.3/script-reference/unityengine/transparencysortmode/orthographic.md) | Orthographic transparency sorting mode.             |
| [Perspective](/engine/6000.3/script-reference/unityengine/transparencysortmode/perspective.md)   | Perspective transparency sorting mode.              |
