From c18ab2f228c8b95f1e28389b44feeca01c92ce08 Mon Sep 17 00:00:00 2001
From: Anton <41597155+antontidev@users.noreply.github.com>
Date: Thu, 2 Nov 2023 22:53:10 +0500
Subject: [PATCH 1/3] Update GUIHelper.cs
---
Runtime/Helpers/GUIHelper.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Runtime/Helpers/GUIHelper.cs b/Runtime/Helpers/GUIHelper.cs
index f1ec6d6..fe4222f 100644
--- a/Runtime/Helpers/GUIHelper.cs
+++ b/Runtime/Helpers/GUIHelper.cs
@@ -6,7 +6,7 @@
public static class GUIHelper
{
- private static readonly GUIStyle _closeButtonStyle = GUI.skin.FindStyle("ToolbarSeachCancelButton");
+ private static readonly GUIStyle _closeButtonStyle = GUI.skin.FindStyle("ToolbarSearchCancelButton");
/// Draws the close button.
/// Rect the button should be located in.
@@ -44,4 +44,4 @@ public ScrollView(Rect position, ref Vector2 scrollPosition, Rect viewRect)
public void Dispose() => GUI.EndScrollView();
}
}
-}
\ No newline at end of file
+}
From f200ad745fa564796cef54d691fdcb730a209d3a Mon Sep 17 00:00:00 2001
From: Anton <41597155+antontidev@users.noreply.github.com>
Date: Thu, 2 Nov 2023 23:10:24 +0500
Subject: [PATCH 2/3] Update GUIHelper.cs
---
Runtime/Helpers/GUIHelper.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Runtime/Helpers/GUIHelper.cs b/Runtime/Helpers/GUIHelper.cs
index fe4222f..7eaacdd 100644
--- a/Runtime/Helpers/GUIHelper.cs
+++ b/Runtime/Helpers/GUIHelper.cs
@@ -6,8 +6,11 @@
public static class GUIHelper
{
+#if UNITY_2023_2_OR_NEWER || UNITY_2021_3_28 || UNITY_2022_3_1
private static readonly GUIStyle _closeButtonStyle = GUI.skin.FindStyle("ToolbarSearchCancelButton");
-
+#else
+ private static readonly GUIStyle _closeButtonStyle = GUI.skin.FindStyle("ToolbarSeachCancelButton");
+#endif
/// Draws the close button.
/// Rect the button should be located in.
/// Whether the button was pressed.
From bebab914f3ea5729bf7b2f0380b4af248cba8b7e Mon Sep 17 00:00:00 2001
From: Anton <41597155+antontidev@users.noreply.github.com>
Date: Thu, 2 Nov 2023 23:11:00 +0500
Subject: [PATCH 3/3] Up version of plugin, add support of 2022 unity version
and higher
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 27cf966..337cdfd 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "com.solidalloy.util",
- "version": "1.40.0",
+ "version": "1.41.0",
"displayName": "Solid Utilities",
"description": "Different utilities that simplify development in Unity3D",
"keywords": [