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.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
GetRenameRect(Rect, int, TreeViewItem<T>)
protected virtual Rect GetRenameRect(Rect rowRect, int row, TreeViewItem<TIdentifier> item)
Parameters
Row rect for the item currently being renamed.
Row index for the item currently being renamed.
TreeViewItem that are currently being renamed.
Returns
Type | Description |
|---|---|
| Rect | 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.