# SetPriority

> Sets the progress indicator's priority.

## Definition

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

## SetPriority(int)

Sets the progress indicator's priority.

```csharp
public void SetPriority(int priority)
```

### Parameters

**** (\[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.6/script-reference/unityeditor/progress/priority.md)).

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

## SetPriority(Priority)

Sets the progress indicator's priority.

```csharp
public void SetPriority(Progress.Priority priority)
```

### Parameters

**** (\[Priority]\(/engine/6000.6/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.6/script-reference/unityeditor/progress/priority.md)).

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