メインコンテンツへスキップ
Docs
›
list.remove

list.remove

List

選ばれた項目をリストから削除します。

シグネチャ

list.remove(ref: ElementRef, key: string, item: ContentRef): void

パラメーター

名前型必須説明
refElementRef必須対象のエレメント。通常は self です。
keystring必須リストの名前。
itemContentRef必須プレイヤーが選んだ項目。

戻り値

void なし。

例

list.remove(self, "pack", trinket);