Version: 2021.2
public static bool Cancel (int id);

参数

id The progress indicator's unique ID.

返回

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

描述

Cancels a runnning progress indicator, and invokes the cancel callback for the associated task.