mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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
5011d97d4a
commit
0b6dda9072
@ -1547,9 +1547,11 @@ namespace Spine.Unity.Editor {
|
|||||||
unityAnimationEvent.stringParameter = spineEvent.String;
|
unityAnimationEvent.stringParameter = spineEvent.String;
|
||||||
// if string (separate from name) is set in event, fallback to objectReferenceParameter.
|
// if string (separate from name) is set in event, fallback to objectReferenceParameter.
|
||||||
unityAnimationEvent.objectReferenceParameter = SpineEventObjectPlaceholder;
|
unityAnimationEvent.objectReferenceParameter = SpineEventObjectPlaceholder;
|
||||||
} else if (spineEvent.Int != 0) {
|
}
|
||||||
|
if (spineEvent.Int != 0) {
|
||||||
unityAnimationEvent.intParameter = spineEvent.Int;
|
unityAnimationEvent.intParameter = spineEvent.Int;
|
||||||
} else if (spineEvent.Float != 0) {
|
}
|
||||||
|
if (spineEvent.Float != 0) {
|
||||||
unityAnimationEvent.floatParameter = spineEvent.Float;
|
unityAnimationEvent.floatParameter = spineEvent.Float;
|
||||||
} // else, paramless function/Action.
|
} // else, paramless function/Action.
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-unity",
|
"name": "com.esotericsoftware.spine.spine-unity",
|
||||||
"displayName": "spine-unity Runtime",
|
"displayName": "spine-unity Runtime",
|
||||||
"description": "This plugin provides the spine-unity runtime core and examples. Spine Examples can be installed via the Samples tab.",
|
"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",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user