Skip to content

SpinePlugin

Defined in: spine/SpinePlugin.ts:54

new SpinePlugin(manager?): SpinePlugin

Defined in: spine/SpinePlugin.ts:64

Pass an explicit manager for headless/tests; otherwise the plugin builds one in build from the app’s App.sideModules host (the realm decides the transport — fetch / inlined / WeChat).

SpineManager

SpinePlugin

name: string = 'spine'

Defined in: spine/SpinePlugin.ts:55

Plugin.name

get spineManager(): SpineManager | null

Defined in: spine/SpinePlugin.ts:68

SpineManager | null

build(app): void

Defined in: spine/SpinePlugin.ts:93

App

void

Plugin.build


cleanup(): void

Defined in: spine/SpinePlugin.ts:164

Drop the world.onDespawn subscription and dispose the spine manager’s native backends. Without this, a re-init left a stale despawn listener pointing at a dead manager and leaked the wasm-side spine resources.

void

Plugin.cleanup


finish(app): void

Defined in: spine/SpinePlugin.ts:149

Wire the spine manager into the Animator as its Spine driver, so spine-targeting Animator states drive skeletal animations. Runs after all plugins build (the AnimatorController resource exists by then if the AnimationPlugin is installed).

App

void

Plugin.finish


setSpineManager(manager): void

Defined in: spine/SpinePlugin.ts:72

SpineManager

void