From 0a32573581c82e8eab77db4f2873f8626467a5e1 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 28 Jun 2022 15:57:04 +0200 Subject: [PATCH] [unity] Fixed compile error due to not all 2020.3 and 2021.1 versions having SaveAssetIfDirty. Closes #2101. --- .../Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs index 12d836ea5..5f34f0c0f 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs @@ -36,7 +36,7 @@ #define HAS_ON_POSTPROCESS_PREFAB #endif -#if UNITY_2020_3_OR_NEWER +#if (UNITY_2020_3 && UNITY_2020_3_16_OR_NEWER) || UNITY_2021_1_17_OR_NEWER #define HAS_SAVE_ASSET_IF_DIRTY #endif