zimporter-pixi - v1.0.80
    Preparing search index...

    Class ZSpine

    Index

    Constructors

    • Creates a ZSpine loader.

      Parameters

      • spineData: SpineData

        The spine asset descriptor from the scene editor.

      • assetBasePath: string

        Base URL / path prepended to all asset file references.

      Returns ZSpine

    Methods

    • Extracts the file name without its extension from a file path.

      Parameters

      • path: string

        A file path or URL string.

      Returns string

      The base file name without the extension (e.g. "windmill-pma").

    • Loads the Spine asset described by spineData and returns a fully configured Spine instance via callback.

      • If spineData.spineAtlas is set, the atlas and JSON are fetched manually (bypassing PIXI's filename-guessing logic) and the correct v3 or v4 runtime is chosen based on the skeleton version string.
      • If spineData.pngFiles is provided instead, each PNG is loaded as a PIXI.Texture, an atlas is built from them, and the skeleton is parsed.

      Parameters

      • callback: (spine: Spine | Spine | undefined) => void

        Receives the finished Spine instance, or undefined if loading failed.

      Returns Promise<void>