mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Merge branch '4.1' into 4.2-beta
This commit is contained in:
commit
12076b1f75
@ -101,10 +101,15 @@ namespace Spine.Unity.Examples {
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
// handle disabled scene reload
|
||||
private void OnEnable () {
|
||||
if (Application.isPlaying)
|
||||
Awake();
|
||||
}
|
||||
|
||||
private void Update () {
|
||||
if (!Application.isPlaying) {
|
||||
if (!Application.isPlaying)
|
||||
InitializeDict();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -142,6 +147,7 @@ namespace Spine.Unity.Examples {
|
||||
}
|
||||
|
||||
void InitializeDict () {
|
||||
replacementMaterialDict.Clear();
|
||||
for (int i = 0; i < replacementMaterials.Length; ++i) {
|
||||
MaterialReplacement entry = replacementMaterials[i];
|
||||
replacementMaterialDict[entry.originalMaterial] = entry.replacementMaterial;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity-examples",
|
||||
"displayName": "spine-unity Runtime Examples",
|
||||
"description": "This plugin provides example scenes and scripts for the spine-unity runtime.",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.10",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
@ -30,4 +30,4 @@
|
||||
},
|
||||
"homepage": "https://github.com/EsotericSoftware/spine-runtimes#readme",
|
||||
"type": "sample"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user