文档

Unity Engine

Unity Engine

Finish(int, Status)

Marks the progress indicator as finished.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void Finish(int id, Progress.Status status = Status.Succeeded)

Parameters

id

The progress indicator's unique ID.

status

The status of the associated task when the progress indicator finishes. Indicates whether the task succeeded, failed, or was canceled.

Remarks

The system removes finished progress indicators unless they are sticky. Sticky progress indicators display progress information even after their associated tasks are complete. The system does not remove them automatically.