- Изменено
runtimes 4.1-beta do not compile on Unity 2020.3.10
Spine Unity runtimes 4.1-beta do not compile for Unity 2020.3.10f1.
The function AssetDatabase.SaveAssetIfDirty is not defined for this version. A little research on my side reveals that it's supported since 2020.3.16, so not in every 2020.3 version.
So specifically, this code is incorrect in SpineBuildProcessor.cs:
#if UNITY_2020_3_OR_NEWER
#define HAS_SAVE_ASSET_IF_DIRTY
#endif
Hope this helps,
M
Wow, so Unity introduces new API/defines in patch versions? That's ... good engineering. Harri will have a look at this.
Thanks very much for reporting and sorry for the troubles!
This issue has just been fixed, a new 4.1-beta unitypackage is available for download.
Spine Unity Download
Issue ticket URL for later reference:
https://github.com/EsotericSoftware/spine-runtimes/issues/2101