---
title: SetSortingOrder(AnimationPlayableOutput, ushort)
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/setsortingorder
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/animations/animationplayableoutputextensions/setsortingorder.md
last_updated: 2026-10-07
generated_at: 2026-11-12T16:19:06.409Z
locale: en-us
---

# SetSortingOrder(AnimationPlayableOutput, ushort)

> Sets the sorting order for 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.SetSortingOrder(ushort) instead

```csharp
public static void SetSortingOrder(this AnimationPlayableOutput output, ushort sortingOrder)
```

### 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.**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)): The sorting order to apply to this output.
