# EndRename()

> Ends renaming if the rename overlay is shown. If called while the rename overlay is not being shown, this method does nothing.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/7000.0/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void EndRename()
```

### Remarks

Additional Resources: [TreeView\<TIdentifier>.BeginRename](/engine/7000.0/script-reference/unityeditor/imgui/controls/treeview1/beginrename.md).
