Version: 2023.2
public static bool Pause (int id);

参数

id The progress indicator's unique ID.

返回

bool True if the task is paused, false if it cannot be paused.

描述

Pauses a runnning progress indicator, and invokes the pause callback for its task.

You can only call this method if a pause callback has been registered for the specified id.
Additional resources: Progress.RegisterPauseCallback, Progress.UnregisterPauseCallback, Progress.Resume.