diff --git a/Runtime/Helpers/GUIHelper.cs b/Runtime/Helpers/GUIHelper.cs
index f1ec6d6..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.
@@ -44,4 +47,4 @@ public ScrollView(Rect position, ref Vector2 scrollPosition, Rect viewRect)
public void Dispose() => GUI.EndScrollView();
}
}
-}
\ No newline at end of file
+}
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": [