[unity] Fixed skeleton baker animation event int and float params not supported at the same time. Closes #3022.

This commit is contained in:
Harald Csaszar 2026-02-05 11:07:11 +01:00
parent 5011d97d4a
commit 0b6dda9072
2 changed files with 5 additions and 3 deletions

View File

@ -1547,9 +1547,11 @@ namespace Spine.Unity.Editor {
unityAnimationEvent.stringParameter = spineEvent.String;
// if string (separate from name) is set in event, fallback to objectReferenceParameter.
unityAnimationEvent.objectReferenceParameter = SpineEventObjectPlaceholder;
} else if (spineEvent.Int != 0) {
}
if (spineEvent.Int != 0) {
unityAnimationEvent.intParameter = spineEvent.Int;
} else if (spineEvent.Float != 0) {
}
if (spineEvent.Float != 0) {
unityAnimationEvent.floatParameter = spineEvent.Float;
} // else, paramless function/Action.

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity",
"displayName": "spine-unity Runtime",
"description": "This plugin provides the spine-unity runtime core and examples. Spine Examples can be installed via the Samples tab.",
"version": "4.3.42",
"version": "4.3.43",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",