ドキュメント

Unity Engine

Unity Engine

TryRemoveItem(int, bool)

Removes an item of the tree if it can find it.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.