LogoPixi’VN
inkFunctions

Function: createSpineHandler()

> createSpineHandler(): void

Defined in: src/ink/spineHandler.ts:109

Registers the # show spine Ink hashtag command, letting Ink scripts show a Spine canvas element the same way @drincs/pixi-vn-ink's built-in # show image shows an ImageSprite: <alias> is just the canvas key (like every other # show ... command), and skeleton/atlas are required among the free-form <key> <value> construction props (forwarded to SpineOptions). An optional entrance transition can run the element in.

Call this once, near the start of your app (alongside e.g. addBaseHashtagCommands), before any Ink content is parsed.

Returns

void

Example

# show spine hero skeleton heroSkeleton atlas heroAtlas xAlign 0.5 yAlign 1 with dissolve duration 1

On this page