Version: 2021.3

Progress.RegisterCancelCallback

切换到手册
public static void RegisterCancelCallback (int id, Func<bool> callback);

参数

id The progress indicator's unique ID.
callback The function called when a progress indicator's associated task is canceled.

描述

Registers a callback that is called when the user cancels a running progress indicator's associated task.