Migrate Spine extension to @esotericsoftware/spine-pixi-v7#8595
Draft
malec-palec wants to merge 1 commit into
Draft
Migrate Spine extension to @esotericsoftware/spine-pixi-v7#8595malec-palec wants to merge 1 commit into
malec-palec wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace a third-party
pixi-spine@4.0.4with the official Esoteric Software runtime for PixiJS v7 (@esotericsoftware/spine-pixi-v7@4.2.116).Changes
pixi-spine→@esotericsoftware/spine-pixi-v7inGDJSandnewIDE/app. Added@pixi/*version overrides to prevent duplicate packages.pixi-spine/pixi-spine.js. Added the official unmodified IIFE bundle atspine-pixi-v7/spine-pixi-v7.jswith a separatespine-pixi-v7-pre.jsshim that maps@pixi/*requires to the globalPIXIobject in browser context.PIXI.Assetsfor loading/caching. Skeleton and atlas are registered as named aliases consumed bySpine.from().new PIXI.Spine()withspine.Spine.from(). Adapted type references to the new API (Bone,Slot,AnimationStateListener, etc.).PixiResourcesLoaderto load spine data throughPIXI.Assetsand expose acreateSpine()helper. UpdatedSpineEditorandObjectSkinNameFieldaccordingly.Breaking change
The new runtime only fully supports skeletons exported from Spine 4.2. Older exports (e.g. 4.0) may partially render but mesh deformations won't work due to a JSON schema change (
deform→attachments).