NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #2890 most downloaded on pub.dev
The official Spine Flutter Runtime to load, display and interact with Spine animations.
Latest stable
4.3.6
Last release 4 months ago
09 Jul 2026
Release timing varies
gaps range from 8 days to 7 months
Nearly every release is documented
notes for 50 of 54 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
54 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
[flutter] Release spine-flutter 4.3.6
[flutter] Release spine-flutter 4.3.6
[flutter] Update example lockfiles for 4.3.5
[flutter] Update example lockfiles for 4.3.5
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed automated release publishing so native source files are included in the pub.dev package.
Added GitHub Actions release automation for spine-flutter.
Updated bundled spine-c/spine-cpp sources and WebAssembly assets for the 4.3 release.
Added fromMemory methods to AtlasFlutter, SkeletonDataFlutter, SkeletonDrawableFlutter, and SpineWidget for loading Spine data from custom sources (me
fromMemory methods to AtlasFlutter, SkeletonDataFlutter, SkeletonDrawableFlutter, and SpineWidget for loading Spine data from custom sources (memory, encrypted storage, databases, custom caching, etc.)load_from_memory.dart demonstrating how to load all assets into memory and use the fromMemory APIIMPORTANT: The C runtime has been completely rewritten as an auto-generated wrapper around the C++ runtime. This is a major breaking change. Users mus…
Additions
max APIs.ScaleYMode APIs.Interpolation and TrackEntry mix interpolation APIs for non-linear animation mixing.spine_slider and spine_slider_data types for slider constraintsspine_attachment_get_timeline_slots(), spine_attachment_set_timeline_slots(), and spine_attachment_is_timeline_active().Bug fixes
BonePose::updateLocalTransform() for noScale and noScaleOrReflection inheritance.ScaleYMode_Volume to avoid extreme scaleY values for very small scaleX factors.Skeleton::updateWorldTransform() to avoid copying draw order unless it is constrained.Breaking changes
spine_bone_pose_reset_world() because resetWorld is an internal implementation detail.placeholder and resolved attachment name.spine_animation_state_get_current() renamed to spine_animation_state_get_track().source_mesh naming instead of parent_mesh to match spine-cpp, eg spine_mesh_attachment_get_source_mesh() / spine_mesh_attachment_set_source_mesh().spine_track_entry_get_mix_blend() / spine_track_entry_set_mix_blend() removed. Use spine_track_entry_get_additive() / spine_track_entry_set_additive() instead.spine_track_entry_get_hold_previous() / spine_track_entry_set_hold_previous() removed.spine_skin_entry_get_name() renamed to spine_skin_entry_get_placeholder_name().apply() signature changed: spine_mix_blend and spine_mix_direction parameters replaced with bool fromSetup, bool add, bool out.spine_animation_apply() signature changed to match.spine_curve_timeline1_get_absolute_value(), spine_curve_timeline1_get_relative_value(), spine_curve_timeline1_get_scale_value() signatures changed.spine_slider_timeline and spine_slider_mix_timeline for animating slidersspine_bone_local, spine_bone_pose, and related typesspine_pose, spine_posed, and spine_posed_active base typesspine_region_attachment and spine_mesh_attachment now mirror the new non-null Sequence model exposed by the C++ runtime.spine_scale_y instead of the old uniform boolean, matching spine-cpp.spine_bone_pose_modify_world() now takes a spine_skeleton instead of an update counter.spine_ik_constraint_data_get_scale_y() / spine_ik_constraint_data_set_scale_y() and spine_scale_y renamed to spine_ik_constraint_data_get_scale_y_mode() / spine_ik_constraint_data_set_scale_y_mode() and spine_scale_y_mode.Breaking changes
spine_bone_pose instead of spine_bone_local. Generated bindings such as spine_bone_data_get_setup_pose() and spine_bone_get_pose() now return spine_bone_pose.spSkeleton_setToSetupPose() → spine_skeleton_setup_pose()spSkeleton_setBonesToSetupPose() → spine_skeleton_setup_pose_bones()spSkeleton_setSlotsToSetupPose() → spine_skeleton_setup_pose_slots()spine_event_data no longer stores event payload values directly. Use spine_event_data_get_setup_pose() and the returned spine_event for setup int, float, string, volume, and balance values.spine_animation_create() now takes only the animation name. spine_animation_set_timelines() now also requires the animation's bone indices.Restructuring
Breaking changes
Additions
Restructuring
Breaking changes
spSkeletonDrawable_update() now takes additional spine_physics parameterAdditions
dragon.cppdragon-json.cppdragon-c.cppdragon-json-c.cppphysics-c.cppik-following-c.cppRestructuring
copy_directory races under ninjaBreaking changes
Additions
SliderData::getMax() / setMax() for nonessential bone-driven slider metadata.PhysicsConstraintData::getScaleYMode() / setScaleYMode() to control how physics scaleX affects scaleY.Interpolation and TrackEntry::getMixInterpolation() / setMixInterpolation() for non-linear animation mixing.Slider and SliderData classes for slider constraintsAttachment::getTimelineSlots(), Attachment::setTimelineSlots(), and Attachment::isTimelineActive() for attachment timeline propagation across linked meshes.SliderTimeline and SliderMixTimeline for animating slidersBoneLocal, BonePose, and related classes for improved transform handlingPose, Posed, and PosedActive base classes for unified pose managementConstraintTimeline interface for unified constraint timeline indexingAnimation::getBones() to get bone indices used by an animationSkeletonData::findConstraint<T>() for type-safe constraint queriesSkeletonRenderer class with RenderCommand for batched renderingHasRendererObject interface for attachments with renderer-specific dataMixBlend and MixDirection are no longer used by timelines. The new system uses bool fromSetup, bool add, bool out parameters and a bitmask-based hold system that replaces holdPrevious and interruptAlpha.Timeline::getAdditive() and Timeline::getInstant() to query timeline blending capabilities.TrackEntry::getAdditive() / TrackEntry::setAdditive() to control additive blending per track entry.Skin::AttachmentMap::Entry::_name renamed to _placeholderName.SkeletonBinary::readLong() sign extension bug that truncated 64-bit hash values to 32 bits.Sequence now precomputes per-frame regions, UVs, and region offsets, and RegionAttachment / MeshAttachment now mirror the libgdx implementation.ClippingAttachment::getConvex() / setConvex() and getInverse() / setInverse().Animation::getColor() and BoneData icon size/rotation accessors for nonessential editor data.Bug fixes
SPINE_USE_STD_FUNCTION animation listeners failing to compile after listener user data was added.SliderData leaking its FromProperty by adding a destructor that frees _property and its ToProperty children, matching TransformConstraintData.BonePose::updateLocalTransform() for noScale and noScaleOrReflection inheritance, plus related IK epsilon handling.ScaleYMode_Volume to avoid extreme scaleY values for very small scaleX factors.InheritTimeline so inherit keys are applied to the keyed bone instead of an uninitialized bone index.AnimationState attachment timeline handling so deforms are applied correctly when an attachment is hidden in the setup pose.Skeleton::updateWorldTransform() to avoid copying draw order unless it is constrained.Breaking changes
MathUtil::Epsilon2 renamed to MathUtil::EpsilonSq.BonePose::modifyWorld() now takes a Skeleton & instead of an update counter.BonePose::resetWorld() is now private.AttachmentLoader methods now receive both the skin placeholder and resolved attachment name. Skin::AttachmentMap::Entry::_placeholderName renamed to _placeholder.AnimationState::getCurrent() renamed to AnimationState::getTrack().MeshAttachment::getParentMesh() / setParentMesh() renamed to getSourceMesh() / setSourceMesh().spine-cpp/spine-cpp/include/spine/ to spine-cpp/include/spine/apply() signature changed: MixBlend blend, MixDirection direction replaced with bool fromSetup, bool add, bool out. All timeline subclasses updated.Animation::apply() signature changed to match the new timeline parameters.CurveTimeline1::getRelativeValue(), getAbsoluteValue(), and getScaleValue() signatures changed from MixBlend/MixDirection to bool fromSetup, bool add, bool out.TrackEntry::getHoldPrevious() / setHoldPrevious() removed. Use TrackEntry::getAdditive() / setAdditive() instead for additive blending.TrackEntry::getMixBlend() / setMixBlend() removed.TrackEntry::_interruptAlpha removed.Skin::AttachmentMap::Entry::_name renamed to _placeholderName. All Skin methods use placeholderName parameter names instead of name/attachmentName.AnimationState hold constants changed: HoldSubsequent and HoldMix removed, replaced with bitmask system (Subsequent=0, First=1, Hold=2, HoldFirst=3).Bone now extends PosedActive with separate pose, constrained, and applied statesIkConstraintData::getUniform() / setUniform() replaced by getScaleY() / setScaleY() and ScaleY (none, uniform, volume).IkConstraintData::getScaleY() / setScaleY() and ScaleY renamed to getScaleYMode() / setScaleYMode() and ScaleYMode.BoneData::getSetupPose() and Bone::getPose() now use BonePose instead of BoneLocal. Bone timelines and parser setup pose data were updated to match the spine-libgdx BoneLocal removal.getConstraintIndex()BoneTimeline, SlotCurveTimeline, and ConstraintTimelineSequence model. RegionAttachment and MeshAttachment were refactored to match spine-libgdx and no longer use the old lazy mutable region update path.Skeleton::setToSetupPose() |
→ | Skeleton::setupPose() |
Skeleton::setBonesToSetupPose() |
→ | Skeleton::setupPoseBones() |
Skeleton::setSlotsToSetupPose() |
→ | Skeleton::setupPoseSlots() |
| Bone::setToSetupPose() | → | Bone::setupPose() |
| Slot::setToSetupPose() | → | Slot::setupPose() |
| IkConstraint::setToSetupPose() | → | IkConstraint::setupPose() |
EventData now stores shared payload defaults in EventData::getSetupPose() instead of directly on EventData. Use the returned Event for setup int, float, string, volume, and balance values.Animation now constructs with only a name. Call setTimelines(timelines, bones) and setDuration() after loading timelines.
| TransformConstraint::setToSetupPose() |→| TransformConstraint::setupPose() |
| PathConstraint::setToSetupPose() |→| PathConstraint::setupPose() |
| PhysicsConstraint::setToSetupPose() |→| PhysicsConstraint::setupPose() |Bone local transform properties moved to bone.getPose():
| bone.getX() | → | bone.getPose().getX() |
| bone.getY() | → | bone.getPose().getY() |
| bone.getRotation() | → | bone.getPose().getRotation() |
| bone.getScaleX() | → | bone.getPose().getScaleX() |
| bone.getScaleY() | → | bone.getPose().getScaleY() |
| bone.getShearX() | → | bone.getPose().getShearX() |
| bone.getShearY() | → | bone.getPose().getShearY() |
Bone world and applied transform properties moved to bone.getAppliedPose():
| bone.getWorldX() | → | bone.getAppliedPose().getWorldX() |
| bone.getWorldY() | → | bone.getAppliedPose().getWorldY() |
| bone.getWorldRotationX() | → | bone.getAppliedPose().getWorldRotationX() |
| bone.getWorldRotationY() | → | bone.getAppliedPose().getWorldRotationY() |
| bone.getWorldScaleX() | → | bone.getAppliedPose().getWorldScaleX() |
| bone.getWorldScaleY() | → | bone.getAppliedPose().getWorldScaleY() |
| bone.getA() | → | bone.getAppliedPose().getA() |
| bone.getB() | → | bone.getAppliedPose().getB() |
| bone.getC() | → | bone.getAppliedPose().getC() |
| bone.getD() | → | bone.getAppliedPose().getD() |
Slot properties moved to slot.getPose():
| slot.getColor() | → | slot.getPose().getColor() |
| slot.getDarkColor() | → | slot.getPose().getDarkColor() |
| slot.getAttachment() | → | slot.getPose().getAttachment() |
| slot.getHasSecondColor() | → | slot.getPose().getHasSecondColor() |
| slot.getDeform() | → | slot.getPose().getDeform() |
IkConstraint properties moved to ikConstraint.getPose():
| ikConstraint.getMix() | → | ikConstraint.getPose().getMix() |
| ikConstraint.getSoftness() | → | ikConstraint.getPose().getSoftness() |
| ikConstraint.getBendDirection() | → | ikConstraint.getPose().getBendDirection() |
| ikConstraint.getCompress() | → | ikConstraint.getPose().getCompress() |
| ikConstraint.getStretch() | → | ikConstraint.getPose().getStretch() |
TransformConstraint properties moved to transformConstraint.getPose():
| transformConstraint.getMixRotate() | → | transformConstraint.getPose().getMixRotate() |
| transformConstraint.getMixX() | → | transformConstraint.getPose().getMixX() |
| transformConstraint.getMixY() | → | transformConstraint.getPose().getMixY() |
| transformConstraint.getMixScaleX() | → | transformConstraint.getPose().getMixScaleX() |
| transformConstraint.getMixScaleY() | → | transformConstraint.getPose().getMixScaleY() |
| transformConstraint.getMixShearY() | → | transformConstraint.getPose().getMixShearY() |
PathConstraint properties moved to pathConstraint.getPose():
| pathConstraint.getPosition() | → | pathConstraint.getPose().getPosition() |
| pathConstraint.getSpacing() | → | pathConstraint.getPose().getSpacing() |
| pathConstraint.getMixRotate() | → | pathConstraint.getPose().getMixRotate() |
| pathConstraint.getMixX() | → | pathConstraint.getPose().getMixX() |
| pathConstraint.getMixY() | → | pathConstraint.getPose().getMixY() |
PhysicsConstraint properties moved to physicsConstraint.getPose():
| physicsConstraint.getMix() | → | physicsConstraint.getPose().getMix() |
| physicsConstraint.getGravity() | → | physicsConstraint.getPose().getGravity() |
| physicsConstraint.getStrength() | → | physicsConstraint.getPose().getStrength() |
| physicsConstraint.getDamping() | → | physicsConstraint.getPose().getDamping() |
| physicsConstraint.getMassInverse() | → | physicsConstraint.getPose().getMassInverse() |
| physicsConstraint.getWind() | → | physicsConstraint.getPose().getWind() |
ConstraintData properties moved to constraintData.getSetupPose():
| ikConstraintData.getMix() | → | ikConstraintData.getSetupPose().getMix() |
| ... | ... |
SkeletonData now provides a single ConstraintData list getConstraints() instead of separate lists per constraint type:
| skeletonData.getIkConstraints() | → | Filter skeletonData.getConstraints() for IkConstraintData instances |
| skeletonData.getTransformConstraints() | → | Filter skeletonData.getConstraints() for TransformConstraintData instances |
| skeletonData.getPathConstraints() | → | Filter skeletonData.getConstraints() for PathConstraintData instances |
| skeletonData.getPhysicsConstraints() | → | Filter skeletonData.getConstraints() for PhysicsConstraintData instances |
SkeletonData now provides unified findConstraint<T>() template method:
| skeletonData.findIkConstraint(name) | → | skeletonData.findConstraint<IkConstraintData>(name) |
| skeletonData.findTransformConstraint(name) | → | skeletonData.findConstraint<TransformConstraintData>(name) |
| skeletonData.findPathConstraint(name) | → | skeletonData.findConstraint<PathConstraintData>(name) |
| skeletonData.findPhysicsConstraint(name) | → | skeletonData.findConstraint<PhysicsConstraintData>(name) |
Physics enum moved from nested Skeleton::Physics to standalone spine::Physics
updateWorldTransform(Skeleton::Physics::update) → updateWorldTransform(spine::Physics::update)apply() methods now take an additional appliedPose parametercomputeWorldVertices() methods now take an additional skeleton parametergetConstraintIndex()addAnimationWith() → addAnimation()setAnimationWith() → setAnimation()setMixWith() → setMix()setSkinByName() → setSkin()getAttachmentByName() → getAttachment()Restructuring
spine-sfml/c/ and spine-sfml/cpp/ to unified spine-sfml/ structureBreaking changes
Additions
TrackEntry mix interpolation.Bug fixes
SpineBoneDriverComponent failing to drive bones affected by constraints.Breaking changes
AttachmentLoader implementations now receive both the skin placeholder and resolved attachment name.USpineSkeletonAnimationComponent::GetCurrent() renamed to GetTrack().USpineWidget::GetCurrent() renamed to GetTrack().Additions
SpineSprite3D with ordered native geometry batching, reusable mesh/material buffers, shared controller/resource APIs, unlit normal/additive blending, tint black, clipping/deform, pixel scaling, and face culling. Transparent sorting uses a character-level priority and sorting offsets without an artificial slot-count cap.SpineSlotNode3D for bone following, explicit 3D geometry insertion between Spine batches, and slot material overrides, plus batching statistics and renderer benchmarks.SpineSprite3D.camera_relative_depth, depth_write_enabled, alpha_cutoff, get_aabb(), and get_depth_shader_code(), with a custom-shader guide and interactive front/back depth example for module and GDExtension.SpineSlotNode3D.depth_camera, with fixed-depth fallback and diagnostics for invalid cameras and multi-view/physics limitations.SpineSprite3D, with lazy shadow-only instances and an interactive Raptor lighting example.SpineAnimationTrack support for SpineSprite3D and Godot 4 GDExtension, including AnimationPlayer playback/editor scrubbing for both 2D and 3D sprites and a shared timeline example.SpineSliderData.get_max() / set_max() for nonessential bone-driven slider metadata.SpinePhysicsConstraintData.get_scale_y_mode() / set_scale_y_mode().SpineTrackEntry mix interpolation APIs and SpineConstant.MixInterpolation.SpineSlider and SpineSliderData classes for slider constraintsSpineTrackEntry.get_additive() / set_additive() for additive blending per track entry.Bug fixes
SpineSprite3D preview animation names dereferencing a null track entry.time_scale changes affecting animation and skeleton/physics advances one update late after controller extraction.SpineSlotNode3D insertion sorting and revealing inactive-bone children on manual or paused sprites; unchanged descendants retain ownership during transfers.SpineSprite3D batch instances rendering while hidden, including pool growth and inherited visibility.SpineSprite3D click and box selection in the Godot 4 3D editor using the current clipped and deformed attachment geometry.SpineSprite3D instances by sharing generated shader variants across characters while keeping material parameters independent.SpineSkeleton, SpineAnimationState, and instance-object wrappers keeping stale native objects after a SpineSprite resource reload or destruction. Retained wrappers are now invalidated safely and must be reacquired from the sprite.SpineSkeletonDataResource constraint getters returning null entries and dropping constraints when multiple constraint types are present.SpineSlotNode connections after unparenting, and stale Godot 3 wrapper signal connections.SpineSprite debug drawing and global bone transform helpers to work when a skeleton exists without an animation state.SpineAnimationTrack editor preview paths for nested AnimationPlayer roots, and prevented inactive tracks from clearing SpineSprite preview animations.SpineBoneNode and SpineSlotNode transforms when bones use negative scale or shear, and applied SpineBoneNode Drive mode before world transforms are computed.SpineSlotNode and global bone transforms exposing the runtime Y-down coordinate conversion as negative Godot Node2D Y scale..skel, .spine-json, and .atlas Spine asset files.godot-cpp by including the required Ref support header in SpineCommon.h, updated SpineEventData for the EventData.setupPose API change, and refreshed vendored spine-cpp sources during clean setup.Transform2D(Vector2, Vector2, Vector2) constructor.Breaking changes (since previous 4.3 beta)
SpineBone.get_global_transform() and SpineBone.set_global_transform(). Use SpineSprite.get_global_bone_transform() and SpineSprite.set_global_bone_transform() for Godot global canvas transforms.SpineSprite3D now defaults to camera-relative spacing, depth writes, a 0.001 slot-depth offset and a 0.001 alpha cutoff. Custom shaders must explicitly implement the documented depth helper; their render modes and source remain unchanged. Disable depth writes and set spacing/cutoff to zero to retain the previous no-write transparent composition.SpineSkin attachment method argument names now use placeholder instead of name.SpineTrackEntry.get_hold_previous() / set_hold_previous() removed.SpineTrackEntry.get_mix_blend() / set_mix_blend() removed. Use get_additive() / set_additive() for additive blending.SpineConstant.MixBlend and SpineConstant.MixDirection enums removed.SpineTimeline.apply() signature changed: blend and direction parameters replaced with from_setup, add, out.SpineAnimation.apply() signature changed to match.SpineAnimationTrack property hold_previous replaced with additive, property mix_blend removed.SpineBoneLocal and SpineBonePose classes for new pose systemSpineIkConstraintPose, SpinePathConstraintPose, SpinePhysicsConstraintPose, SpineSliderPose, SpineTransformConstraintPoseSpineIkConstraintData.get_scale_y() / set_scale_y() and SpineConstant.ScaleY renamed to get_scale_y_mode() / set_scale_y_mode() and SpineConstant.ScaleYMode.Breaking changes
SpineAnimationState.get_current() renamed to SpineAnimationState.get_track() in the GDScript API.SpineBone.get_pose() and SpineBoneData.get_setup_pose() now return SpineBonePose to match the updated spine-cpp bone pose API.SpineBone: update_world_transform(), set_to_setup_pose(), get_world_to_local_rotation_x(), get_world_to_local_rotation_y()SpineBone: get_x(), set_x(), get_y(), set_y(), get_rotation(), set_rotation(), etc. - use pose objects insteadSpineAnimation.apply() now takes an additional appliedPose parameterSpineSkeleton still maintains set_to_setup_pose(), set_bones_to_setup_pose(), set_slots_to_setup_pose() for compatibilityAdditions
Slider and SliderData classes for slider constraintsSliderTimeline and SliderMixTimeline for animating slidersBonePose and related classesIPose, Posed, and PosedActive base classes for unified pose managementIConstraintTimeline interface for unified constraint timeline indexingAnimation.Bones property to get bone indices used by an animationSkeleton properties GravityX, GravityY, WindX, WindY to allow rotating physics force directionsColor32F class used in new .GetColor() and .SetColor() methods replacing .R .G .B .A propertiesAttachment.TimelineSlots and Attachment.IsTimelineActive() for attachment timeline propagation across linked meshesDrawOrderFolderTimeline for animating draw order foldersClippingAttachment.Convex and ClippingAttachment.InverseIkConstraintData.ScaleYMode enum and IkConstraintData.ScaleY to control how IK compress/stretch changes BonePose.ScaleY, including volume preservationallowMissingRegions parameter to AtlasAttachmentLoader constructor to support skeletons exported with per-skin atlasesTrackEntry.Reverse animations now fire events. Previously events were not fired when an animation was played in reverse.TrackEntry.MixInterpolation for customizable non-linear mixing. Defaults to Interpolation.Linear to maintain existing behaviour.Breaking changes
Color properties .R .G .B .A are replaced by .GetColor() and .SetColor()
Dark color properties .R2 .G2 .B2 are replaced by .GetDarkColor() and .SetDarkColor()
Bone now extends PosedActive with separate pose, constrained, and applied states
Bone local transform properties moved to Bone.Pose:
| Bone.X | → | Bone.Pose.X |
| Bone.Y | → | Bone.Pose.Y |
| Bone.Rotation | → | Bone.Pose.Rotation |
| Bone.ScaleX | → | Bone.Pose.ScaleX |
| Bone.ScaleY | → | Bone.Pose.ScaleY |
| Bone.ShearX | → | Bone.Pose.ShearX |
| Bone.ShearY | → | Bone.Pose.ShearY |
Bone world and applied transform properties moved to Bone.AppliedPose:
| Bone.AX | → | Bone.AppliedPose.X |
| Bone.AY | → | Bone.AppliedPose.Y |
| Bone.ARotation | → | Bone.AppliedPose.Rotation |
| Bone.AScaleX | → | Bone.AppliedPose.ScaleX |
| Bone.AScaleY | → | Bone.AppliedPose.ScaleY |
| Bone.AShearX | → | Bone.AppliedPose.ShearX |
| Bone.AShearY | → | Bone.AppliedPose.ShearY |
| Bone.WorldX | → | Bone.AppliedPose.WorldX |
| Bone.WorldY | → | Bone.AppliedPose.WorldY |
| Bone.WorldRotationX | → | Bone.AppliedPose.WorldRotationX |
| Bone.WorldRotationY | → | Bone.AppliedPose.WorldRotationY |
Bone no longer provides a Bone.Skeleton property, constructor no longer takes a skeleton parameter
Slot properties moved to SlotPose, i.e. Slot.AppliedPose:
| Slot.Attachment | → | Slot.AppliedPose.Attachment |
| Slot.R .G .B .A | → | Slot.AppliedPose.GetColor() and Slot.AppliedPose.SetColor() |
| Slot.R2 .G2 .B2 | → | Slot.AppliedPose.GetDarkColor() and Slot.AppliedPose.SetDarkColor() |
| Slot.HasSecondColor | → | Slot.AppliedPose.HasDarkColor |
| Slot.Deform | → | Slot.AppliedPose.Deform |
| Slot.SequenceIndex | → | Slot.AppliedPose.SequenceIndex |
Constraint properties moved to Constraint.Pose:
| IkConstraint.Mix | → | IkConstraint.Pose.Mix |
| IkConstraint.Softness | → | IkConstraint.Pose.Softness |
| IkConstraint.BendDirection | → | IkConstraint.Pose.BendDirection |
| IkConstraint.Compress | → | IkConstraint.Pose.Compress |
| IkConstraint.Stretch | → | IkConstraint.Pose.Stretch |
| TransformConstraint.MixRotate | → | TransformConstraint.Pose.MixRotate |
| TransformConstraint.MixX | → | TransformConstraint.Pose.MixX |
| TransformConstraint.MixY | → | TransformConstraint.Pose.MixY |
| TransformConstraint.MixScaleX | → | TransformConstraint.Pose.MixScaleX |
| TransformConstraint.MixScaleY | → | TransformConstraint.Pose.MixScaleY |
| TransformConstraint.MixShearY | → | TransformConstraint.Pose.MixShearY |
| PathConstraint.Position | → | PathConstraint.Pose.Position |
| PathConstraint.Spacing | → | PathConstraint.Pose.Spacing |
| PathConstraint.MixRotate | → | PathConstraint.Pose.MixRotate |
| PathConstraint.MixX | → | PathConstraint.Pose.MixX |
| PathConstraint.MixY | → | PathConstraint.Pose.MixY |
| PhysicsConstraint.Mix | → | PhysicsConstraint.Pose.Mix |
| PhysicsConstraint.Gravity | → | PhysicsConstraint.Pose.Gravity |
| PhysicsConstraint.Strength | → | PhysicsConstraint.Pose.Strength |
| PhysicsConstraint.Damping | → | PhysicsConstraint.Pose.Damping |
| PhysicsConstraint.MassInverse | → | PhysicsConstraint.Pose.MassInverse |
| PhysicsConstraint.Wind | → | PhysicsConstraint.Pose.Wind |
ConstraintData properties moved to ConstraintData.GetSetupPose()
| IkConstraintData.Mix | → | IkConstraintData.GetSetupPose().Mix |
| ... | ... |
SkeletonData now provides a single IConstraintData list SkeletonData.Constraints instead of separate lists per constraint type
| SkeletonData.IkConstraints | → | SkeletonData.Constraints.OfType<IkConstraintData>() |
| SkeletonData.TransformConstraints | → | SkeletonData.Constraints.OfType<TransformConstraintData>() |
| SkeletonData.PathConstraints | → | SkeletonData.Constraints.OfType<PathConstraintData>() |
| SkeletonData.PhysicsConstraints | → | SkeletonData.Constraints.OfType<PhysicsConstraintData>() |
SkeletonData now provides SkeletonData.FindConstraint<ConstraintData>() instead of single find methods per constraint type
| SkeletonData.FindIkConstraint | → | SkeletonData.FindConstraint<IkConstraintData>() |
| SkeletonData.FindTransformConstraint | → | SkeletonData.FindConstraint<TransformConstraintData>() |
| SkeletonData.FindPathConstraint | → | SkeletonData.FindConstraint<PathConstraintData>() |
| SkeletonData.FindPhysicsConstraint | → | SkeletonData.FindConstraint<PhysicsConstraintData>() |
Renamed setup pose methods:
Skeleton.SetToSetupPose() |
→ | Skeleton.SetupPose() |
Skeleton.SetBonesToSetupPose() |
→ | Skeleton.SetupPoseBones() |
Skeleton.SetSlotsToSetupPose() |
→ | Skeleton.SetupPoseSlots() |
| Bone.SetToSetupPose() | → | Bone.SetupPose() |
| Slot.SetToSetupPose() | → | Slot.SetupPose() |
| IkConstraint.SetToSetupPose() | → | IkConstraint.SetupPose() |
Skeleton.Physics was moved to Physics directly in Spine namespace
UpdateWorldTransform(Skeleton.Physics.Update) → UpdateWorldTransform(Spine.Physics.Update)Timeline Apply() methods now take an additional appliedPose parameter
Attachment ComputeWorldVertices() methods now take an additional skeleton parameter
Renamed timeline constraint index methods to use unified ConstraintIndex property
Reorganized timeline class hierarchy with new base classes
Removed AtlasAttachmentLoader method AtlasRegion FindRegion(string name) from public interface. Added protected AtlasRegion FindRegion(string name, string path) instead which may be overridden instead when deriving your own subclass.
Removed TrackEntry.HoldPrevious and TrackEntry.InterruptAlpha. New AnimationState hold system automatically calculates the required state values.
Removed BoneLocal class. BonePose now directly implements IPose<BonePose> and contains all local pose fields. Replace any use of BoneLocal → BonePose.
EventData no longer stores Int, Float, String, Volume, and Balance properties directly. Use EventData.SetupPose to access the setup pose Event which provides these properties instead.
EventData.Int |
→ | EventData.SetupPose.Int |
EventData.Float |
→ | EventData.SetupPose.Float |
EventData.String |
→ | EventData.SetupPose.String |
EventData.Volume |
→ | EventData.SetupPose.Volume |
EventData.Balance |
→ | EventData.SetupPose.Balance |
Timeline.PropertyIds type changed from string[] to ulong[]. Animation.HasTimeline() parameter and Timeline constructors changed accordingly.
Skeleton.DrawOrder type changed from ExposedList<Slot> to DrawOrder class. Use Skeleton.DrawOrder.AppliedPose for rendering and Skeleton.DrawOrder.Pose for changing the draw order.
IkConstraintData.Uniform replaced by IkConstraintData.ScaleY. IkConstraint.Apply() methods now take ScaleY instead of a bool uniform parameter.
MeshAttachment.ParentMesh renamed to MeshAttachment.SourceMesh
AttachmentLoader methods NewRegionAttachment, NewMeshAttachment, NewBoundingBoxAttachment, NewClippingAttachment, NewPathAttachment, and NewPointAttachment now take an additional string placeholder parameter. Update any custom AttachmentLoader implementations accordingly.
Renamed Skin.SkinEntry.Name to Skin.SkinEntry.Placeholder to better match Spine editor terminology. Was intermediately renamed to PlaceholderName which was then changed to Placeholder.
MathUtils.IInterpolation class is replaced by new Interpolation class, see Additions above.
AnimationState.SetCurrent() renamed to AnimationState.SetTrack(); AnimationState.GetCurrent() renamed to AnimationState.GetTrack().
AnimationState.SetCurrent() |
→ | AnimationState.SetTrack() |
AnimationState.GetCurrent() |
→ | AnimationState.GetTrack() |
Ported the AnimationState additive/hold rework from spine-libgdx. MixBlend, MixDirection, holdPrevious, and interruptAlpha are no longer used. Timeline mixing now uses MixFrom, add, and mixOut parameters, with hold state calculated automatically.
Animation.Apply() and Timeline.Apply() now take a MixFrom value instead of the previous boolean fromSetup argument. Replace true with MixFrom.Setup and false with MixFrom.Current. If you upgraded to an intermediate 4.3 runtime that still used fromSetup, update those call sites again.
Officially supported Unity versions are 2017.1-6000.4.
Breaking changes
Documentation/4.3-split-component-upgrade-guide.md document for detailed migration instructions. The major changes are:
SkeletonAnimation is now split into SkeletonAnimation + SkeletonRenderer componentsSkeletonMecanim is now split into SkeletonMecanim + SkeletonRenderer componentsSkeletonGraphic is now split into SkeletonAnimation + SkeletonGraphic componentsSkeleton.Physics was moved to Physics directly in Spine namespace, thus might clash with UnityEngine.Physics.
UpdateWorldTransform(Skeleton.Physics.Update) → UpdateWorldTransform(Spine.Physics.Update)Physics.gravity → UnityEngine.Physics.gravity.SkeletonRenderer: maskInteraction → MaskInteraction.GameObject - Spine - SkeletonRenderer and the like which are spawning e.g. a GameObject with an empty SkeletonRenderer component without SkeletonDataAsset assigned and thus also not initialized properly.attachment.GetRemappedClone() extension methods. Replace attachment.GetRemappedClone(parameters) with attachment.Copy(); attachment.SetRegion(parameters). Removed AttachmentCloneExtensions class, SetRegion methods are now in AttachmentRegionExtensions.ToAtlasRegionPMAClone to ToAtlasRegionWithNewPMATexture.ToRegionAttachmentPMAClone to ToRegionAttachmentWithNewPMATexture.Spine Animation State Clip property Hold Previous. New AnimationState hold system automatically calculates the required state values.SkeletonAnimation callbacks MainThreadStart, MainThreadInterrupt, MainThreadEnd, MainThreadDispose, MainThreadComplete and MainThreadEvent. Instead SkeletonAnimation.AnimationState and TrackEntry events are now automatically processed on the main thread. There is no longer a change of user code required for these events, and TrackEntry events can be utilized directly even with threaded animation enabled.SkeletonGraphic property CustomSlotMaterials now properly assigns the override material directly instead of assigning the texture of the override material, which was of little use.new or override modifier or rename the method.Changes of default values
PMA Vertex Color is unaffected and shall be enabled as usual to allow for single-pass additive rendering.Additions
Switch Texture Workflow functionality to quickly switch to the respective PMA or straight-alpha texture and material presets..atlas.txt file. Invalid settings include the atlas being PMA and project using Linear color space, and a mismatch of Auto-Import presets set to straight alpha compared to the atlas being PMA and vice versa. The dialog offers an option to automatically fix the problematic setting on the import side and links website documentation for export settings. This dialog can be disabled and re-enabled via Spine preferences.Threaded MeshGeneration: Default value for SkeletonRenderer and SkeletonGraphic threaded mesh generationThreaded Animation: Default value for SkeletonAnimation and SkeletonMecanim threaded animation updatesSkeletonRenderer and SkeletonAnimation user callbacks like UpdateWorld (not including AnimationState callbacks) being issued on the main thread to support existing user code. Can be configured via SkeletonUpdateSystem.Instance.MainThreadUpdateCallbacks = false to perform callbacks on worker threads if parallel execution is supported and desired by the user code. OnPostProcessVertices is an exception, as it it's deliberately left on worker threads so that parallellization can be utilized. Note that most Unity API calls are restricted to the main thread.SkeletonUpdateSystem.Instance.GroupRenderersBySkeletonType and GroupAnimationBySkeletonType properties. Defaults to disabled. Later when smart partitioning is implemented, enabling this parameter might slightly improve cache locality. Until then having it enabled combined with different skeleton complexity would lead to worse load balancing.SkeletonGraphic and SkeletonMecanim.SPINE_DISABLE_THREADING to disable threaded animation and mesh generation entirely, removing the respective code. This define can be set as Scripting Define Symbols globally or for selective build profiles where desired.Threading Defaults - Load Balancing setting a build define accordingly.
Additional configuration parameters SkeletonUpdateSystem.UpdateChunksPerThread and LateUpdateChunksPerThread are available to fine-tune the chunk count for load balancing. A minimum of 8 chunks is recommended with load balancing enabled. Higher values add higher overhead with potentially detrimental effect on performance.Flip Back Faces to automatically fix back-face geometry in an additional pass (defaults to enabled). Disable the setting to save additional processing overhead.SpineVisualElement expand Blend Mode Materials and hit Detect Materials to automatically assign the proper PMA or straight alpha material at Normal Material. Unity minimum version increased to 6000.3 which added support for UI Toolkit materials.Multiple Materials (enabled by default), expand Blend Mode Materials and hit Detect Materials to automatically assign the correct PMA or straight alpha blend mode materials.Outline option to switch to the respective Outline shader variant. Uses multi-pass support of newer URP versions. Requires spine-unity core package version 4.3.44 or newer due to required modifications in custom Sprite Shader GUI.GetRepackedSkin and GetRepackedAttachments supporting blend modes. These new variants take a packing configuration input struct RepackAttachmentsSettings which provides optional additiveMaterialSource, multiplyMaterialSource and screenMaterialSource properties, enabling blend mode repacking when any is non-null. Create your RepackAttachmentsSettings from default settings via RepackAttachmentsSettings.Default and then customize settings as needed. Blend mode materials can be set at once using UseSourceMaterialsFrom(SkeletonDataAsset) or UseBlendModeMaterialsFrom(SkeletonDataAsset). Uses new RepackAttachmentsOutput struct providing DestroyGeneratedAssets to easily destroy any previously generated assets.GetRepackedSkin variant usage.SkeletonAnimation component. A mismatch may be intentional for a special split SkeletonDataAsset setup. Warning color can be disabled in Edit - Preferences - Spine, Warnings - SkeletonDataAsset Mismatch Warning.SkeletonDataAsset Inspector now generates the set of AnimationReferenceAssets as nested assets below a single asset <skeletonname>_AnimationReferences.asset to avoid cluttering the project with hundreds of asset files. This also makes searching the project for a suitable AnimationReferenceAsset of a given SkeletonDataAsset much faster. Use of existing old individual assets is still supported alongside nested new ones. If you require the old way of creating assets in your project, add SPINE_INDIVIDUAL_ANIMATION_REFERENCE_ASSETS to your project's Scripting Define Symbols.Editor Instantiation - Warnings - SkeletonDataAsset Mismatch Warning to disable the warning color when a different SkeletonDataAsset is detected at the AnimationReferenceAsset than at the SkeletonRenderer component at the same GameObject or any parent GameObject. Might be valid setup for special AnimationReferenceAsset re-use for identical skeletons.SkeletonGraphic now allows using separate additive Materials despite having PMA Vertex Colors enabled (as required for Spine shaders) via the new Blend Modes - Force Additive Material property in the Advanced Inspector section.SkeletonGraphic property CustomSlotMaterials now properly assigns the override material directly instead of assigning the texture of the override material, which was of little use. Thus you can now assign a SkeletonGraphic compatible material like SkeletonGraphicAdditive-Straight.SkeletonGraphicCustomMaterials now exposes Custom Slot Materials property for slot material overrides.SpineVisualElement.Initialize as public.SkeletonRenderer and SkeletonGraphic classes now provide PhysicsPositionInheritanceLimit and PhysicsRotationInheritanceLimit properties, exposed in the component Inspector under Physics Inheritance as Limit properties, below Position and Rotation.SkeletonGraphic now provides a new method MatchReferenceRectWithBounds to adjust the reference rectangle bounds to the mesh bounds for use with automatic layout scale modes. The Match RectTransform with Mesh Match button is now available outside of Edit Layout Bounds mode as well and performs this adjustment for quick one-click setup.SkeletonGraphic: You can now offset the pivot with automatic offset compensation via a newly added blue circle handle. This lets you move the pivot to the skeleton part that you want fixed when auto layout mode scales and moves your skeleton around to fit the RectTransform bounds. It also helps to visualize the current pivot position if you set the pivot numerically via the RectTransform Inspector.SkeletonAnimation received a DeltaTimeOverride callback. This allows advancing by custom delta time for e.g. stepped animation updates in a threaded context. The callback may change UpdateMode to disable or limit skeleton updates for certain frames. It is called on the main thread once before animation update.SkeletonAnimationFixedTimestepThreaded as a replacement component for SkeletonAnimationFixedTimestep which was limited to single-threaded use only. This component is using the new DeltaTimeOverride event and is thus compatible with both single-threaded and multi-threaded animation.SkeletonAnimationStaticPoseOptimizer which automatically skips animation and mesh updates while a SkeletonAnimation's AnimationState retains a static pose. It is compatible with threaded animation and mesh updates. The component modifies SkeletonAnimation.UpdateMode, so watch out for side effects if multiple components modify this same property.HasRequestFailed to GenericOnDemandTextureLoader, automatically handling when requests fail to be processed. It provides a default implementation returning false to maintain the existing behaviour without code change. AddressableTextureLoader implements this method accordingly to cover Addressable request failure. Be sure to update both com.esotericsoftware.spine.addressables and com.esotericsoftware.spine.on-demand-loading UPM packages.IDeferredCleanupOnDemandTextureLoader interface for automatic cleanup by OnDemandTextureLoaderCleanup below. GenericOnDemandTextureLoader implements this interface.OnDemandTextureLoaderCleanup, which automatically maintains loaders with unreleased texture requests independently of skeleton renderer lifecycle. This is necessary because textures are deliberately kept alive for a delay after their last use to avoid unload/reload thrashing, so cleanup must continue after the last renderer using them is destroyed. When loaders are destroyed or unloaded they now also unload all textures and restore their low-resolution placeholders.Material assets whose main texture references an on-demand target texture. RenderExistingMesh replacement materials now support on-demand texture loading. Copied and custom materials used for on-demand loading are restored to placeholders when target textures unload._BumpMap) to the new Additional Texture Properties list at the loader asset (e.g. AddressableTextureLoader), or hit Add All Textures. Placeholder textures are setup automatically and the high-resolution textures are loaded and unloaded together with the main texture, also at blend mode materials and copied materials. The loader setup is validated before builds and in the loader Inspector. If the placeholder map is out of date, warnings are logged and no placeholder textures are assigned for this loader when building, so its textures are included in the build at full resolution instead of being loaded on demand. Custom GenericOnDemandTextureLoader subclasses shall assign loaded textures via SetTexture(material, textureIndex, texture) instead of material.mainTexture in CreateTextureRequest. Be sure to update both com.esotericsoftware.spine.addressables and com.esotericsoftware.spine.on-demand-loading UPM packages.new or override modifier or rename it.
OnDemandTextureLoader: AssignPlaceholderTextures(Material, out Texture[]), RestoreTargetTextures (three overloads), IsPlaceholderTexture, IsTargetTexture, ValidateSetup, GetTexturePropertyNames.GenericOnDemandTextureLoader: GetTexture, SetTexture, GetMainTexturePropertyID, FindMaterialIndexByPlaceholder, FindMaterialIndexByPlaceholderName, FindMaterialIndexByTargetTexture, FindLoadedMaterialIndexByTarget, ValidateSetup(bool), AddAllTextureProperties, `IsAdditions
Slider and SliderData classes for slider constraintsSliderTimeline and SliderMixTimeline for animating slidersBoneLocal, BonePose, and related classesPose, Posed, and PosedActive base classes for unified pose managementBreaking changes
lib/generated/ providing complete API coverage of all Spine runtime types.apply() methods now take an additional appliedPose parameterThe examples and documentation have been updated to demonstrate the minimal changes needed to migrate from 4.2 to 4.3.
Before (4.2):
controller.skeleton.setScaleX(0.5);
controller.skeleton.setScaleY(0.5);
controller.skeleton.findSlot("gun")?.setColor(Color(1, 0, 0, 1));
After (4.3):
controller.skeleton.scaleX = 0.5;
controller.skeleton.scaleY = 0.5;
controller.skeleton.findSlot("gun")?.pose.color.set(1, 0, 0, 1);
Before (4.2):
controller.animationState.getData().setDefaultMix(0.2);
controller.animationState.setAnimationByName(0, "portal", true);
controller.animationState.addAnimationByName(0, "run", true, 0);
After (4.3):
controller.animationState.data.defaultMix = 0.2;
controller.animationState.setAnimation(0, "portal", true);
controller.animationState.addAnimation(0, "run", true, 0);
Before (4.2):
print("Event: ${event?.getData().getName()}");
print("Int value: ${event?.getIntValue()}");
print("Animation: ${entry?.getAnimation().getName()}");
After (4.3):
print("Event: ${event?.data.name}");
print("Int value: ${event?.intValue}");
print("Animation: ${entry?.animation.name}");
Before (4.2):
final bone = controller.skeleton.findBone("crosshair")!;
final parent = bone.getParent()!;
final position = parent.worldToLocal(worldPosition.dx, worldPosition.dy);
bone.setX(position.x);
bone.setY(position.y);
After (4.3):
final bone = controller.skeleton.findBone("crosshair")!;
final parent = bone.parent;
if (parent != null) {
final position = parent.appliedPose.worldToLocal(worldPosition.dx, worldPosition.dy);
bone.appliedPose.x = position.x;
bone.appliedPose.y = position.y;
}
Support for 16KB page alignement on Android. You must specify the NDK version in the build.gradle file of your app's Android project. See https://gith
Port of commit f1e0f0f: Fixed animation not being mixed out in some cases.
Merge fixes in spine-cpp(-lite)
Fix spine-flutter spec checksum in Podfile.lock, keeping version control cleaner. See https://github.com/EsotericSoftware/spine-runtimes/pull/2609
Podfile.lock, keeping version control cleaner. See https://github.com/EsotericSoftware/spine-runtimes/pull/2609Fix bug in IKConstraint leading to NaNs.
Switch to spine-cpp SkeletonRenderer
Fix issue in pubspec.yaml related to C++ include paths.
Fix incompatibility with Gradle 8.x. See https://github.com/EsotericSoftware/spine-runtimes/issues/2553
Fixes clipping in case of colinear clipping edges.
Skeleton.getBounds() takes clipping into consideration.
Skeleton.getBounds() takes clipping into consideration.- Switch to spine-cpp-lite
Support static linking of native library, see https://github.com/EsotericSoftware/spine-runtimes/issues/2438
- Physics support
Fix multiply blend mode, see https://esotericsoftware.com/forum/d/25369-spine-flutter-slot%E6%B7%B7%E5%90%88%E6%A8%A1%E5%BC%8F%E5%90%8Ealpha%E4%B8%A2%
FilterQuality for texture atlas pages is now set to medium. It is configurable via Atlas.filterQuality. See https://github.com/EsotericSoftware/spine-
Atlas.filterQuality. See https://github.com/EsotericSoftware/spine-runtimes/issues/2362Fixed clipping bug, see https://github.com/EsotericSoftware/spine-runtimes/issues/2431
Fixes #2412, single bone, translation only IK constraints did not take skeleton scale into account.
Fixes compilation errors due to API change in Flutter 3.16.0, see this issue. Note: Depending on this version requires your project to depend on Flutt
Fix allocation patter for temporary structs on Windows, which resulted in a hard crash without a stack trace on the native side.
Fixed bug in path handling on Windows.
Updated http dependency to 1.1.0
- Merge changes from 4.1.4.
- Fixes for Impeller.
Merge changes from 4.1.1 and 4.1.2.
Update README.md with setup and development instructions.
Update README.md to point to Junji's Dart-only Spine runtime.
- Fix atlas parsing.
Change reversed positional argument order in SpineWidget constructors.
SpineWidget constructors.Change package name from esotericsoftware_spine_flutter to spine_flutter.
esotericsoftware_spine_flutter to spine_flutter.Temporary "fix" for https://github.com/EsotericSoftware/spine-runtimes/issues/2479. It appears the canvaskit backend of Flutter has a bug. We currentl
FilterQuality anymore. The Flutter rendering backend is supposed to pick a good one depending the platform. Users can still set FilterQuality globally via Atlas.filterQuality as before.Fix multiply blend mode, see https://esotericsoftware.com/forum/d/25369-spine-flutter-slot%E6%B7%B7%E5%90%88%E6%A8%A1%E5%BC%8F%E5%90%8Ealpha%E4%B8%A2%
FilterQuality for texture atlas pages is now set to medium. It is configurable via Atlas.filterQuality. See https://github.com/EsotericSoftware/spine-
Atlas.filterQuality. See https://github.com/EsotericSoftware/spine-runtimes/issues/2362Fixed clipping bug, see https://github.com/EsotericSoftware/spine-runtimes/issues/2431
- Update WASM binaries
\*Fixes #2412, single bone, translation only IK constraints did not take skeleton scale into account.
*Fixes #2412, single bone, translation only IK constraints did not take skeleton scale into account.
Fixes compilation errors due to API change in Flutter 3.16.0, see this issue. Note: Depending on this version requires your project to depend on Flutt
Fix allocation patter for temporary structs on Windows, which resulted in a hard crash without a stack trace on the native side.
Fixed bug in path handling on Windows.
Updated http dependency to 1.1.0
- Fixes for WASM/web builds.
- Fixes for Impeller.
API documentation and minor cosmetics.
Backport to 4.1 spine-runtimes branch.
SkeletonDrawable will be retained if the asset file names and type provided to the SpineWidget constructor has not changed.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.