Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryRemoveItem(int, bool)

Removes an item of the tree if it can find it.
Read time 1 minuteLast updated 11 days ago

Definition

public bool TryRemoveItem(int id, bool rebuildTree = true)

Parameters

id

The item id.

rebuildTree

Whether we need to rebuild tree data. Set to false when doing multiple additions to save a few rebuilds.

Returns

Type

Description

boolIf the item was removed from the tree.