---
title: GetSortingOrder(AnimationPlayableOutput)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/animations/animationplayableoutputextensions/getsortingorder
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/animations/animationplayableoutputextensions/getsortingorder.md
last_updated: 2026-10-07
generated_at: 2026-11-13T06:07:21.356Z
locale: en-us
---

# GetSortingOrder(AnimationPlayableOutput)

> Gets the priority index of the specified AnimationPlayableOutput.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.Animations](/engine/7000.0/script-reference/unityengine/experimental/animations.md)
* **Assembly:** UnityEngine.AnimationModule

> **Warning:**
>
> **Deprecated.** Use AnimationPlayableOutput.GetSortingOrder() instead

```csharp
public static ushort GetSortingOrder(this AnimationPlayableOutput output)
```

### Parameters

**** (\[AnimationPlayableOutput]\(/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput)): The [AnimationPlayableOutput](/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput.md) instance that calls this method.

### Returns

| Type                                                           | Description                              |
| -------------------------------------------------------------- | ---------------------------------------- |
| [ushort](https://learn.microsoft.com/dotnet/api/system.uint16) | Returns the sorting order of the output. |

### Remarks

Default sorting order is set to 100.
