Version: 2019.3
LanguageEnglish
  • C#

TreeView.GetRenameRect

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

protected Rect GetRenameRect(Rect rowRect, int row, IMGUI.Controls.TreeViewItem item);

Parameters

rowRectRow rect for the item currently being renamed.
rowRow index for the item currently being renamed.
itemTreeViewItem that are currently being renamed.

Returns

Rect The rect where the rename overlay should appear.

Description

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

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