Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

BaseTreeViewController.TryRemoveItem

Declaration

public bool TryRemoveItem(int id, bool rebuildTree);

Parameters

id The item id.
rebuildTree Whether we need to rebuild tree data. Set to <c>false</c> when doing multiple operations and call <see cref="TreeViewController.RebuildTree()" />.

Returns

bool Whether the item was successfully found and removed.

Description

Removes an item by id.