ドキュメント

Unity Engine

Unity Engine

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetRenameRect(Rect, int, TreeViewItem<T>)

protected virtual Rect GetRenameRect(Rect rowRect, int row, TreeViewItem<TIdentifier> 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.