GetTotalSteps(int)
Gets the total number of steps, from start to finish, for a progress indicator.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static int GetTotalSteps(int id)
Parameters
The progress indicator's unique ID.
Returns
Type | Description |
|---|---|
| int | 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.
Additional Resources: Progress.Report, Progress.GetCurrentStep, Progress.GetStepLabel, Progress.SetStepLabel.