# GetTotalSteps(int)

> Gets the total number of steps, from start to finish, for a progress indicator.

## Definition

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

```csharp
public static int GetTotalSteps(int id)
```

### Parameters

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

### Returns

| Type                                                       | Description          |
| ---------------------------------------------------------- | -------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of steps. |

### Remarks

Returns -1 if you don't use steps to report progress on this indicator. To set the type of steps that the progress window displays, use [Progress.SetStepLabel](/engine/6000.7/script-reference/unityeditor/progress/setsteplabel.md).

Additional Resources: [Progress.Report](/engine/6000.7/script-reference/unityeditor/progress/report.md), [Progress.GetCurrentStep](/engine/6000.7/script-reference/unityeditor/progress/getcurrentstep.md), [Progress.GetStepLabel](/engine/6000.7/script-reference/unityeditor/progress/getsteplabel.md), [Progress.SetStepLabel](/engine/6000.7/script-reference/unityeditor/progress/setsteplabel.md).
