# Cancelled(int, string, string)

> Unity calls this function when the user presses the Escape key to cancel editing a name.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.ProjectWindowCallback](/engine/6000.0/script-reference/unityeditor/projectwindowcallback.md)
* **Assembly:** UnityEditor

```csharp
public virtual void Cancelled(int instanceId, string pathName, string resourceFile)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The instance ID of the asset that the user attempted to edit.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to the asset.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The resource file string argument passed to ProjectWindowUtil.StartNameEditingIfProjectWindowExists.
