Constructs a new selection.
Optionaliterable: Iterable<Object3D<Object3DEventMap>, any, any> | nullA collection of objects that should be added to this selection.
A dedicated render layer for selected objects. Range is [2, 31]. Starts at 2 if omitted.
Indicates whether this selection is enabled.
Controls whether objects that are added to this selection should be removed from all other layers.
The render layer for selected objects.
Clears this selection.
Removes an object from this selection.
The object that should be deselected.
Returns true if an object has successfully been removed from this selection; otherwise false.
Clears this selection and adds the given objects.
The objects that should be selected.
This selection.
Sets the visibility of all selected objects.
This method enables or disables render layer 0 of all selected objects.
Whether the selected objects should be visible.
This selection.
Removes an existing object from the selection. If the object doesn't exist it's added instead.
The object.
Returns true if the object is added, false otherwise.
An object selection.
Object selections use render layers to facilitate quick and efficient visibility changes.