zimporter-phaser - v1.0.48
    Preparing search index...

    Class ZSpine

    ZSpine — loads a Spine 4.x skeleton using the @esotericsoftware/spine-phaser plugin.

    Supports both:

    • Standard path: spineJson + spineAtlas file via plugin loader
    • No-atlas path: spineJson + individual pngFiles PNGs are loaded as Phaser textures, then a TextureAtlas is built manually (mirroring the PIXI version) and injected into the plugin's atlasCache.

    Register SpinePlugin in your Phaser game config: plugins: { scene: [{ key: "SpinePlugin", plugin: SpinePlugin, mapping: "spine" }] }

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • scene: Scene
      • spineData: SpineData
      • assetBasePath: string

      Returns ZSpine

    Methods

    • Parameters

      • callback: SpineCallback

      Returns Promise<void>