# GetRenameRect(Rect, int, TreeViewItem<TIdentifier>)

> Override this method if custom GUI handling are used in TreeView<TIdentifier>.RowGUI. This method for controls where the rename overlay appears.

## Definition

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

## GetRenameRect(Rect, int, TreeViewItem\<T>)

```csharp
protected virtual Rect GetRenameRect(Rect rowRect, int row, TreeViewItem<TIdentifier> item)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Row rect for the item currently being renamed.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Row index for the item currently being renamed.**** (\[TreeViewItem\<T>]\(/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem)): TreeViewItem that are currently being renamed.

### Returns

| Type                                                        | Description                                      |
| ----------------------------------------------------------- | ------------------------------------------------ |
| [Rect](/engine/6000.5/script-reference/unityengine/rect.md) | The rect where the rename overlay should appear. |

### Remarks

By default the rename overlay matches the placement of the item's displayName text being rendered.
