# 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/6000.3/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor

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

### Remarks

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