From 3bf1541d735ca8b3037b008699fdbc90af882a7e Mon Sep 17 00:00:00 2001 From: uurha Date: Thu, 25 Jul 2024 15:10:44 +0200 Subject: [PATCH 1/2] Fix definition --- Assets/BetterCommons/Editor/Helpers/StyleContainer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/BetterCommons/Editor/Helpers/StyleContainer.cs b/Assets/BetterCommons/Editor/Helpers/StyleContainer.cs index 0d4dade..7dd40d8 100644 --- a/Assets/BetterCommons/Editor/Helpers/StyleContainer.cs +++ b/Assets/BetterCommons/Editor/Helpers/StyleContainer.cs @@ -2298,6 +2298,7 @@ private void ForceApply() _cachedStyle.wordSpacing = _wordSpacing.Value; } +#if UNITY_2022_2_OR_NEWER if (_backgroundPositionX.HasValue) { _cachedStyle.backgroundPositionX = _backgroundPositionX.Value; @@ -2322,6 +2323,7 @@ private void ForceApply() { _cachedStyle.unitySliceScale = _unitySliceScale.Value; } +#endif } } } \ No newline at end of file From 7d8bf48d015ac85d86a553e2f145d22ef8d43881 Mon Sep 17 00:00:00 2001 From: uurha Date: Thu, 25 Jul 2024 15:10:55 +0200 Subject: [PATCH 2/2] Update package.json --- Assets/BetterCommons/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/BetterCommons/package.json b/Assets/BetterCommons/package.json index dccc3ba..93ea393 100644 --- a/Assets/BetterCommons/package.json +++ b/Assets/BetterCommons/package.json @@ -1,7 +1,7 @@ { "name": "com.tdw.better.commons", "displayName": "Better Commons", - "version": "0.0.25", + "version": "0.0.26", "unity": "2021.3", "description": " ", "dependencies": {