melonJS
    Preparing search index...

    Interface LDtkEntityInstance

    an entity placed in an Entities layer

    interface LDtkEntityInstance {
        __grid: [number, number];
        __identifier: string;
        __pivot: [number, number];
        __smartColor?: string;
        __tags: string[];
        __tile?: LDtkTileRect | null;
        __worldX?: number | null;
        __worldY?: number | null;
        defUid: number;
        fieldInstances: LDtkFieldInstance[];
        height: number;
        iid: string;
        px: [number, number];
        width: number;
    }
    Index
    __grid: [number, number]

    its cell

    __identifier: string
    __pivot: [number, number]

    where the pivot is in the entity's box, each from 0 to 1

    __smartColor?: string
    __tags: string[]
    __tile?: LDtkTileRect | null
    __worldX?: number | null
    __worldY?: number | null
    defUid: number
    fieldInstances: LDtkFieldInstance[]
    height: number
    iid: string
    px: [number, number]

    where its pivot is, in pixels from the layer's origin

    width: number