Preparing search index...

    Represents an immutable set of scene layers, supporting set operations like union, intersection, and difference.

    Index

    Constructors

    Properties

    A LayerSet containing all available layers.

    mask: number

    The underlying bitmask representing the set of active layers.

    None: LayerSet

    An empty LayerSet containing no layers.

    Methods

    • Returns true if this set contains all layers in the given LayerSet.

      Parameters

      Returns boolean

    • Creates a LayerSet from a single bit index.

      Parameters

      • bit: number

      Returns LayerSet

    • Creates a LayerSet from a raw bitmask value.

      Parameters

      • mask: number

      Returns LayerSet

    • Returns true if this set contains no layers.

      Returns boolean

    • Returns the collection of predefined layer identifiers.

      Returns LayerSet

    • Returns an array of all LayerId values in this set.

      Returns LayerId[]