[unity] Update UI Toolkit package to 4.3-beta code changes.

This commit is contained in:
Harald Csaszar 2025-08-21 16:29:27 +02:00
parent 4add7da011
commit 32a8552387
3 changed files with 6 additions and 6 deletions

View File

@ -92,14 +92,14 @@ namespace Spine.Unity.Editor {
Skeleton skeleton = new Skeleton(skeletonData);
if (!string.IsNullOrEmpty(skin) && !string.Equals(skin, "default", System.StringComparison.Ordinal))
skeleton.SetSkin(skin);
skeleton.SetSlotsToSetupPose();
skeleton.SetupPose();
Spine.Animation animation = skeletonData.FindAnimation(animationName);
if (animation != null)
animation.Apply(skeleton, -1, 0, false, null, 1.0f, MixBlend.First, MixDirection.In);
animation.Apply(skeleton, -1, 0, false, null, 1.0f, MixBlend.First, MixDirection.In, false);
skeleton.Update(0f);
skeleton.UpdateWorldTransform(Skeleton.Physics.Update);
skeleton.UpdateWorldTransform(Physics.Update);
float x, y, width, height;
SkeletonClipping clipper = new SkeletonClipping();

View File

@ -237,7 +237,7 @@ namespace Spine.Unity {
else
state.ApplyEventTimelinesOnly(skeleton);
skeleton.UpdateWorldTransform(Skeleton.Physics.Update);
skeleton.UpdateWorldTransform(Physics.Update);
}
void Initialize (bool overwrite) {
@ -287,7 +287,7 @@ namespace Spine.Unity {
protected void UpdateAnimation () {
this.state.ClearTracks();
skeleton.SetToSetupPose();
skeleton.SetupPose();
string displayedAnimation = Application.isPlaying ? startingAnimation : boundsAnimation;
if (!string.IsNullOrEmpty(displayedAnimation)) {

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.ui-toolkit",
"displayName": "Spine UI Toolkit [Experimental]",
"description": "This plugin provides UI Toolkit integration for the spine-unity runtime.\n\nPrerequisites:\nIt requires a working installation of the spine-unity runtime, version 4.3.0 or newer and Unity 6000.0.16 or newer (requires [this bugfix](https://issuetracker.unity3d.com/issues/some-default-uxmlconverters-are-dependent-on-the-current-culture)).\n(See http://esotericsoftware.com/git/spine-runtimes/spine-unity)",
"version": "4.3.0-preview.2",
"version": "4.3.0-preview.3",
"unity": "6000.0",
"author": {
"name": "Esoteric Software",