# SetPriority

> Sets a progress indicator's priority.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## SetPriority(int, int)

Sets a progress indicator's priority.

```csharp
public static void SetPriority(int id, int priority)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The progress indicator's unique ID.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The priority.

### Remarks

Progress indicators are sorted by priority, from highest to lowest. Priorities also determine the visual behavior of progress indicators (see [Progress.Priority](/engine/6000.7/script-reference/unityeditor/progress/priority.md)).

Additional Resources: [Progress.GetPriority](/engine/6000.7/script-reference/unityeditor/progress/getpriority.md), [Progress.Item.priority](/engine/6000.7/script-reference/unityeditor/progress/item/priority.md), [Progress.Item.SetPriority](/engine/6000.7/script-reference/unityeditor/progress/item/setpriority.md).

## SetPriority(int, Priority)

Sets a progress indicator's priority.

```csharp
public static void SetPriority(int id, Progress.Priority priority)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The progress indicator's unique ID.**** (\[Priority]\(/engine/6000.7/script-reference/unityeditor/progress/priority)): The priority.

### Remarks

Progress indicators are sorted by priority, from highest to lowest. Priorities also determine the visual behavior of progress indicators (see [Progress.Priority](/engine/6000.7/script-reference/unityeditor/progress/priority.md)).

Additional Resources: [Progress.GetPriority](/engine/6000.7/script-reference/unityeditor/progress/getpriority.md), [Progress.Item.priority](/engine/6000.7/script-reference/unityeditor/progress/item/priority.md), [Progress.Item.SetPriority](/engine/6000.7/script-reference/unityeditor/progress/item/setpriority.md).
