[unity] Added manual Update(float) method at SkeletonMecanim for updateTiming ManualUpdate. Closes #2389.

This commit is contained in:
Harald Csaszar 2023-10-02 16:47:40 +02:00
parent 64853b73bc
commit c0032b4ffb
2 changed files with 8 additions and 1 deletions

View File

@ -109,6 +109,13 @@ namespace Spine.Unity {
UpdateAnimation(); UpdateAnimation();
} }
/// <summary>Manual animation update. Required when <c>updateTiming</c> is set to <c>ManualUpdate</c>.</summary>
/// <param name="deltaTime">Ignored parameter.</param>
public virtual void Update (float deltaTime) {
if (!valid) return;
UpdateAnimation();
}
protected void UpdateAnimation () { protected void UpdateAnimation () {
wasUpdatedAfterInit = true; wasUpdatedAfterInit = true;

View File

@ -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.", "description": "This plugin provides the spine-unity runtime core.",
"version": "4.1.25", "version": "4.1.26",
"unity": "2018.3", "unity": "2018.3",
"author": { "author": {
"name": "Esoteric Software", "name": "Esoteric Software",