ecspresso
    Preparing search index...

    Interface Renderer2DPluginAppOptions<G>

    Options when providing a pre-initialized PixiJS Application

    interface Renderer2DPluginAppOptions<G extends string = "renderer2d"> {
        app: Application;
        camera?: boolean;
        container?: undefined;
        init?: undefined;
        renderLayers?: string[];
        renderSyncPriority?: number;
        rootContainer?: Container<ContainerChild>;
        screenScale?: ScreenScaleOptions;
        startLoop?: boolean;
        systemGroup?: G;
        transform?: TransformPluginOptions<"transform">;
    }

    Type Parameters

    • G extends string = "renderer2d"

    Hierarchy

    • Renderer2DPluginCommonOptions<G>
      • Renderer2DPluginAppOptions
    Index

    Properties

    app: Application

    The PixiJS Application instance (already initialized)

    camera?: boolean

    Automatically apply cameraState resource to rootContainer each frame. Requires the camera plugin to be installed. (default: false)

    container?: undefined
    init?: undefined
    renderLayers?: string[]

    Ordered render layer names (back-to-front). Entities with a renderLayer component are placed in the corresponding container.

    renderSyncPriority?: number

    Priority for render sync system (default: 500)

    rootContainer?: Container<ContainerChild>

    Optional custom root container (defaults to app.stage)

    screenScale?: ScreenScaleOptions

    Enforce a logical design resolution with automatic aspect-ratio-aware scaling. When set, systems work in design-resolution coordinate space.

    startLoop?: boolean

    When true, wires up pixiApp.ticker to drive ecs.update() automatically (default: true)

    systemGroup?: G

    System group name (default: 'renderer2d')

    transform?: TransformPluginOptions<"transform">

    Options for the included transform plugin