# Cancel()

> Cancels a running progress indicator.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public bool Cancel()
```

### Returns

| Type                                                          | Description                                                                                    |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the associated task is cancelled, false if something prevents it from being cancelled. |

### Remarks

Additional Resources: [Progress.Cancel](/engine/6000.7/script-reference/unityeditor/progress/cancel.md), [Progress.Item.RegisterCancelCallback](/engine/6000.7/script-reference/unityeditor/progress/item/registercancelcallback.md), [Progress.Item.UnregisterCancelCallback](/engine/6000.7/script-reference/unityeditor/progress/item/unregistercancelcallback.md).
