Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BeginRename

Shows the rename overlay for a TreeViewItem.
Read time 1 minuteLast updated 11 days ago

Definition

BeginRename(TreeViewItem)

Shows the rename overlay for a TreeViewItem.
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 InstanceID data, you should instead opt to upgrade your TreeViews to use TreeView\<InstanceID\> to get the proper typing.
public bool BeginRename(TreeViewItem item)

Parameters

Item to rename.

Returns

Type

Description

boolReturns true if renaming was started. Returns false if renaming was already active.

Remarks

This renames the displayName string.

BeginRename(TreeViewItem, float)

Shows the rename overlay for a TreeViewItem.
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 InstanceID data, you should instead opt to upgrade your TreeViews to use TreeView\<InstanceID\> to get the proper typing.
public bool BeginRename(TreeViewItem item, float delay)

Parameters

Item to rename.

delay

Delay in seconds until the rename overlay shows.

Returns

Type

Description

boolReturns true if renaming was started. Returns false if renaming was already active.

Remarks

This renames the displayName string.