Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TreeView.BeginRename

public bool BeginRename(IMGUI.Controls.TreeViewItem item);
public bool BeginRename(IMGUI.Controls.TreeViewItem item, float delay);

Parameters

itemItem to rename.
delayDelay in seconds until the rename overlay shows.

Returns

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

Description

Shows the rename overlay for a TreeViewItem.

This renames the TreeViewItem.displayName string.

Did you find this page useful? Please give it a rating: