RegisterCancelCallback(int, Func<bool>)
Registers a callback that is called when the user requests to cancel a running progress indicator's associated task.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static void RegisterCancelCallback(int id, Func<bool> callback)
Parameters
The progress indicator's unique ID.
The function called when a request to cancel a progress indicator's associated task is made. The function returns true if it actually cancelled the task.
Remarks
Additional Resources: Progress.Cancel, Progress.UnregisterCancelCallback.