Skip to content

Commit 0de0850

Browse files
committed
[unity] Fixed AnimationReferenceAsset and EventDataReferenceAsset maintaining old cached values with disabled domain reload. See #3191.
1 parent 38ddb1a commit 0de0850

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/AnimationReferenceAsset.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ public Animation Animation {
6969
}
7070
}
7171

72+
#if UNITY_EDITOR
73+
void OnValidate () {
74+
Clear();
75+
}
76+
#endif
77+
7278
/// <summary>Clears the cached animation corresponding to a loaded SkeletonData object.
7379
/// Use this to force a reload for the next time Animation is called.</summary>
7480
public void Clear () {

‎spine-unity/Assets/Spine/Runtime/spine-unity/Asset Types/EventDataReferenceAsset.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public EventData EventData {
5050
}
5151
}
5252

53+
#if UNITY_EDITOR
54+
void OnValidate () {
55+
eventData = null;
56+
}
57+
#endif
58+
5359
public void Initialize () {
5460
if (skeletonDataAsset == null)
5561
return;

‎spine-unity/Assets/Spine/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.esotericsoftware.spine.spine-unity",
33
"displayName": "spine-unity Runtime",
44
"description": "This plugin provides the spine-unity runtime core and examples. Spine Examples can be installed via the Samples tab.",
5-
"version": "4.3.117",
5+
"version": "4.3.118",
66
"unity": "2018.3",
77
"author": {
88
"name": "Esoteric Software",

0 commit comments

Comments
 (0)