postprocessing - v7.0.0-beta.16
    Preparing search index...

    Class Selection

    An object selection.

    Object selections use render layers to facilitate quick and efficient visibility changes.

    Hierarchy

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    enabled: boolean

    Indicates whether this selection is enabled.

    exclusive: boolean

    Controls whether objects that are added to this selection should be removed from all other layers.

    Accessors

    Methods

    • Removes an object from this selection.

      Parameters

      • object: Object3D

        The object that should be deselected.

      Returns boolean

      Returns true if an object has successfully been removed from this selection; otherwise false.

    • Sets the visibility of all selected objects.

      This method enables or disables render layer 0 of all selected objects.

      Parameters

      • visible: boolean

        Whether the selected objects should be visible.

      Returns this

      This selection.

    • Removes an existing object from the selection. If the object doesn't exist it's added instead.

      Parameters

      Returns boolean

      Returns true if the object is added, false otherwise.