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 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": {