Documentation

Unity Engine

Unity Engine

BeginRename

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

Definition

BeginRename(TreeViewItem)

Shows the rename overlay for a TreeViewItem.
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 TreeViewItem.displayName string.

BeginRename(TreeViewItem, float)

Shows the rename overlay for a TreeViewItem.
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 TreeViewItem.displayName string.