remove

fun remove(primitive: Any? = definedExternally): Boolean(source)

Removes a primitive from the collection.

const billboards = scene.primitives.add(new BillboardCollection());
scene.primitives.remove(billboards); // Returns true

Return

true if the primitive was removed; false if the primitive is undefined or was not found in the collection.

Parameters

primitive

The primitive to remove.

See also