The layers of a {@Editor.Assets.Scene}.

interface Layers {
    canAdd: boolean;
    combinedIds: Editor.Model.LayerSet;
    id: Uuid;
    type: string;
    add(layerId: LayerId): Layer;
    contains(layerId: LayerId): boolean;
    find(layerId: LayerId): Layer;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
    remove(layerId: LayerId): void;
}

Hierarchy (view full)

Properties

canAdd: boolean

Check if another layer can be added to this entity.

combinedIds: Editor.Model.LayerSet

The LayerSet which represents this entity.

id: Uuid

The unique id of the entity.

type: string

The entity's type.

Methods

  • Beta

    Add layerId to this entity.

    Parameters

    Returns Layer

  • Beta

    Whether the layers contain layerId.

    Parameters

    Returns boolean

  • Beta

    Get the layer with layerId if possible.

    Parameters

    Returns Layer

  • Beta

    Parameters

    • type: string

    Returns boolean

  • Beta

    Swap this entity for another one based on a JSON of the current entity id and the target entity id.

    Parameters

    • referenceMapping: object

    Returns void

  • Beta

    Remove layerId from this entity.

    Parameters

    Returns void