From 6655c8d31eb2f9469df6ebc1f44871aaa95fac53 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 11 Mar 2026 22:15:50 +0100 Subject: [PATCH] [unity] Fixed a custom version define. See #2960. --- .../spine-unity/Editor/Utility/SpineBuildProcessor.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 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 ece07c001..25cb68b2c 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 @@ -39,7 +39,15 @@ #define HAS_ON_POSTPROCESS_PREFAB #endif -#if UNITY_2020_3_16_OR_NEWER || UNITY_2021_1_17_OR_NEWER +// Note: major_minor_OR_NEWER is automatically defined, but not major_minor_patch_OR_NEWER +#if (UNITY_2020_3 && !(UNITY_2020_3_1 || UNITY_2020_3_2 || UNITY_2020_3_3 || UNITY_2020_3_4 || UNITY_2020_3_5 || UNITY_2020_3_6 || UNITY_2020_3_7 || UNITY_2020_3_8 || UNITY_2020_3_9 || UNITY_2020_3_10 || UNITY_2020_3_11 || UNITY_2020_3_12 || UNITY_2020_3_13 || UNITY_2020_3_14 || UNITY_2020_3_15)) +#define UNITY_2020_3_16_OR_NEWER +#endif +#if (UNITY_2021_1 && !(UNITY_2021_1_1 || UNITY_2021_1_2 || UNITY_2021_1_3 || UNITY_2021_1_4 || UNITY_2021_1_5 || UNITY_2021_1_6 || UNITY_2021_1_7 || UNITY_2021_1_8 || UNITY_2021_1_9 || UNITY_2021_1_10 || UNITY_2021_1_11 || UNITY_2021_1_12 || UNITY_2021_1_13 || UNITY_2021_1_14 || UNITY_2021_1_15 || UNITY_2021_1_16)) +#define UNITY_2021_1_17_OR_NEWER +#endif + +#if UNITY_2020_3_16_OR_NEWER || UNITY_2021_1_17_OR_NEWER || UNITY_2021_2_OR_NEWER #define HAS_SAVE_ASSET_IF_DIRTY #endif #define SPINE_OPTIONAL_ON_DEMAND_LOADING