Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRenameRect(Rect, int, TreeViewItem)

Override this method if custom GUI handling are used in TreeView.RowGUI. This method for controls where the rename overlay appears.
Read time 1 minuteLast updated 10 days ago

Definition

Warning
Removed. TreeView is now deprecated. You can likely now use TreeView\<int\> instead and not think more about it. But if you were using that identifier to store EntityId data, you should instead opt to upgrade your TreeViews to use TreeView\<EntityId\> to get the proper typing.
protected virtual Rect GetRenameRect(Rect rowRect, int row, TreeViewItem item)

Parameters

rowRect

Row rect for the item currently being renamed.

row

Row index for the item currently being renamed.

TreeViewItem that are currently being renamed.

Returns

Type

Description

RectThe rect where the rename overlay should appear.

Remarks

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