[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 61e29d51d9
commit 54d7009745
2 changed files with 5 additions and 3 deletions

View File

@ -1537,9 +1537,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.",
"version": "4.2.112",
"version": "4.2.113",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",