diff --git a/Editor/EditorAddons/Drawers/Gizmo/BaseWrappers/GizmoWrapper.cs b/Editor/EditorAddons/Drawers/Gizmo/BaseWrappers/GizmoWrapper.cs index b4cf871..900c5a4 100644 --- a/Editor/EditorAddons/Drawers/Gizmo/BaseWrappers/GizmoWrapper.cs +++ b/Editor/EditorAddons/Drawers/Gizmo/BaseWrappers/GizmoWrapper.cs @@ -2,6 +2,9 @@ using BetterAttributes.EditorAddons.Drawers.Utilities; using UnityEditor; using UnityEngine; +#if UNITY_2022_1_OR_NEWER +using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility; +#endif namespace BetterAttributes.EditorAddons.Drawers.Gizmo { diff --git a/Editor/EditorAddons/Drawers/Gizmo/GizmoDrawer.cs b/Editor/EditorAddons/Drawers/Gizmo/GizmoDrawer.cs index 3ab5904..834cc01 100644 --- a/Editor/EditorAddons/Drawers/Gizmo/GizmoDrawer.cs +++ b/Editor/EditorAddons/Drawers/Gizmo/GizmoDrawer.cs @@ -6,6 +6,9 @@ using BetterExtensions.EditorAddons; using UnityEditor; using UnityEngine; +#if UNITY_2022_1_OR_NEWER +using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility; +#endif namespace BetterAttributes.EditorAddons.Drawers.Gizmo { diff --git a/Editor/EditorAddons/Drawers/Gizmo/HideTransformDrawer.cs b/Editor/EditorAddons/Drawers/Gizmo/HideTransformDrawer.cs index bac6245..4ab1d1f 100644 --- a/Editor/EditorAddons/Drawers/Gizmo/HideTransformDrawer.cs +++ b/Editor/EditorAddons/Drawers/Gizmo/HideTransformDrawer.cs @@ -1,8 +1,10 @@ using BetterAttributes.EditorAddons.Drawers.Utilities; -using BetterAttributes.EditorAddons.Helpers; using BetterExtensions.EditorAddons; using UnityEditor; using UnityEngine; +#if UNITY_2022_1_OR_NEWER +using GizmoUtility = BetterAttributes.EditorAddons.Drawers.Utilities.GizmoUtility; +#endif namespace BetterAttributes.EditorAddons.Drawers.Gizmo { diff --git a/package.json b/package.json index de4f65f..8e46012 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.uurha.betterattributes", "displayName": "Unity Better Attributes", - "version": "0.1.3", + "version": "0.1.4", "unity": "2018.3", "description": "Unity attributes, allows to serialize interfaces, draw handles for Vector3/Vector2/Quaternion/Bounds, create read only fields.", "dependencies": {