An asset in Lens Studio.

interface Filter {
    fileMeta: AssetImportMetadata;
    id: Uuid;
    includeDynamic: boolean;
    includeIntangible: boolean;
    includeStatic: boolean;
    name: string;
    onlyLayers: Editor.Model.LayerSet;
    skipLayers: Editor.Model.LayerSet;
    type: string;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

id: Uuid

The unique id of the entity.

includeDynamic: boolean
includeIntangible: boolean
includeStatic: boolean
name: string

The name of the asset.

onlyLayers: Editor.Model.LayerSet
skipLayers: Editor.Model.LayerSet
type: string

The entity's type.

Methods

  • 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