SpinePlugin
Defined in: spine/SpinePlugin.ts:54
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”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).
Parameters
Section titled “Parameters”manager?
Section titled “manager?”Returns
Section titled “Returns”SpinePlugin
Properties
Section titled “Properties”name:
string='spine'
Defined in: spine/SpinePlugin.ts:55
Implementation of
Section titled “Implementation of”Accessors
Section titled “Accessors”spineManager
Section titled “spineManager”Get Signature
Section titled “Get Signature”get spineManager():
SpineManager|null
Defined in: spine/SpinePlugin.ts:68
Returns
Section titled “Returns”SpineManager | null
Methods
Section titled “Methods”build()
Section titled “build()”build(
app):void
Defined in: spine/SpinePlugin.ts:93
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”cleanup()
Section titled “cleanup()”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.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”finish()
Section titled “finish()”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).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”setSpineManager()
Section titled “setSpineManager()”setSpineManager(
manager):void
Defined in: spine/SpinePlugin.ts:72
Parameters
Section titled “Parameters”manager
Section titled “manager”Returns
Section titled “Returns”void