Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTotalSteps(int)

Gets the total number of steps, from start to finish, for a progress indicator.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static int GetTotalSteps(int id)

Parameters

id

The progress indicator's unique ID.

Returns

Type

Description

intThe 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.