# BeginRename

> Shows the rename overlay for a TreeViewItem.

## Definition

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

## BeginRename(TreeViewItem\<T>)

Shows the rename overlay for a TreeViewItem.

```csharp
public bool BeginRename(TreeViewItem<TIdentifier> item)
```

### Parameters

**** (\[TreeViewItem\<T>]\(/engine/6000.6/script-reference/unityeditor/imgui/controls/treeviewitem)): Item to rename.

### Returns

| Type                                                          | Description                                                                         |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if renaming was started. Returns false if renaming was already active. |

### Remarks

This renames the [TreeViewItem\<TIdentifier>.displayName](/engine/6000.6/script-reference/unityeditor/imgui/controls/treeviewitem1/displayname.md) string.

## BeginRename(TreeViewItem\<T>, float)

Shows the rename overlay for a TreeViewItem.

```csharp
public bool BeginRename(TreeViewItem<TIdentifier> item, float delay)
```

### Parameters

**** (\[TreeViewItem\<T>]\(/engine/6000.6/script-reference/unityeditor/imgui/controls/treeviewitem)): Item to rename.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Delay in seconds until the rename overlay shows.

### Returns

| Type                                                          | Description                                                                         |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if renaming was started. Returns false if renaming was already active. |

### Remarks

This renames the [TreeViewItem\<TIdentifier>.displayName](/engine/6000.6/script-reference/unityeditor/imgui/controls/treeviewitem1/displayname.md) string.
