# Cancelled(EntityId, 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.6/script-reference/unityeditor/projectwindowcallback.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public virtual void Cancelled(EntityId entityId, string pathName, string resourceFile)
```

### Parameters

**** (\[EntityId]\(/engine/6000.6/script-reference/unityengine/entityid)): The EntityId 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.
