mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[unity] Fixed skeleton baker animation event int and float params not supported at the same time. Closes #3022.
This commit is contained in:
parent
61e29d51d9
commit
54d7009745
@ -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.
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user