diff --git a/Assets/Editor Toolbox/CHANGELOG.md b/Assets/Editor Toolbox/CHANGELOG.md index a6a47413..2ea309a9 100644 --- a/Assets/Editor Toolbox/CHANGELOG.md +++ b/Assets/Editor Toolbox/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.14.4 [11.04.2026] + +### Changed: +- Package support for Unity 6.4+ + ## 0.14.3 [29.12.2025] ### Added: diff --git a/Assets/Editor Toolbox/Editor/ToolboxEditorHandler.cs b/Assets/Editor Toolbox/Editor/ToolboxEditorHandler.cs index ab5a9414..35abd164 100644 --- a/Assets/Editor Toolbox/Editor/ToolboxEditorHandler.cs +++ b/Assets/Editor Toolbox/Editor/ToolboxEditorHandler.cs @@ -1,5 +1,9 @@ using System; using System.Collections.Generic; +// NOTE: Needed for EntityId +#if UNITY_6000_4_OR_NEWER +using UnityEngine; +#endif namespace Toolbox.Editor { @@ -8,17 +12,30 @@ namespace Toolbox.Editor public static class ToolboxEditorHandler { +#if UNITY_6000_4_OR_NEWER + private static EntityId lastCachedEditorId; +#else private static int lastCachedEditorId; +#endif private static Editor lastCachedEditor; private static readonly Stack cachedEditors = new Stack(); private static void OnBeginEditor(Editor editor) { +#if UNITY_6000_4_OR_NEWER + var lastId = lastCachedEditor != null ? lastCachedEditor.GetEntityId() : default; +#else + var lastId = lastCachedEditor != null ? lastCachedEditor.GetInstanceID() : default; +#endif //NOTE: it means that last Editor was null or disposed, anyway we probably want to reload drawers-related cache - if (lastCachedEditor == null || lastCachedEditorId != lastCachedEditor.GetInstanceID()) + if (lastCachedEditor == null || lastCachedEditorId != lastId) { lastCachedEditor = editor; +#if UNITY_6000_4_OR_NEWER + lastCachedEditorId = editor.GetEntityId(); +#else lastCachedEditorId = editor.GetInstanceID(); +#endif OnEditorReload?.Invoke(); } diff --git a/Assets/Editor Toolbox/Editor/ToolboxEditorHierarchy.cs b/Assets/Editor Toolbox/Editor/ToolboxEditorHierarchy.cs index 5f947558..a11f4294 100644 --- a/Assets/Editor Toolbox/Editor/ToolboxEditorHierarchy.cs +++ b/Assets/Editor Toolbox/Editor/ToolboxEditorHierarchy.cs @@ -26,8 +26,13 @@ internal enum LabelType static ToolboxEditorHierarchy() { +#if UNITY_6000_4_OR_NEWER + EditorApplication.hierarchyWindowItemByEntityIdOnGUI -= OnItemCallback; + EditorApplication.hierarchyWindowItemByEntityIdOnGUI += OnItemCallback; +#else EditorApplication.hierarchyWindowItemOnGUI -= OnItemCallback; EditorApplication.hierarchyWindowItemOnGUI += OnItemCallback; +#endif } /// @@ -38,7 +43,11 @@ static ToolboxEditorHierarchy() /// /// Tries to display item label in the Hierarchy Window. /// +#if UNITY_6000_4_OR_NEWER + private static void OnItemCallback(EntityId instanceId, Rect rect) +#else private static void OnItemCallback(int instanceId, Rect rect) +#endif { if (!IsOverlayAllowed) { diff --git a/Assets/Editor Toolbox/package.json b/Assets/Editor Toolbox/package.json index 737b33e0..915507c9 100644 --- a/Assets/Editor Toolbox/package.json +++ b/Assets/Editor Toolbox/package.json @@ -1,7 +1,7 @@ { "name": "com.browar.editor-toolbox", "displayName": "Editor Toolbox", - "version": "0.14.3", + "version": "0.14.4", "unity": "2018.1", "description": "Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.", "keywords": [ diff --git a/Packages/manifest.json b/Packages/manifest.json index 794f1ad1..6ac3ddc0 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -2,17 +2,18 @@ "dependencies": { "com.unity.2d.sprite": "1.0.0", "com.unity.2d.tilemap": "1.0.0", - "com.unity.analytics": "3.6.12", - "com.unity.collab-proxy": "2.0.0", + "com.unity.ai.navigation": "1.1.6", + "com.unity.analytics": "3.8.1", + "com.unity.collab-proxy": "2.7.1", "com.unity.editorcoroutines": "1.0.0", - "com.unity.ide.rider": "3.0.18", - "com.unity.ide.visualstudio": "2.0.17", - "com.unity.test-framework": "1.1.31", - "com.unity.textmeshpro": "3.0.6", - "com.unity.timeline": "1.6.4", - "com.unity.toolchain.win-x86_64-linux-x86_64": "1.0.0", + "com.unity.ide.rider": "3.0.36", + "com.unity.ide.visualstudio": "2.0.22", + "com.unity.test-framework": "1.1.33", + "com.unity.textmeshpro": "3.0.7", + "com.unity.timeline": "1.7.7", + "com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.4", "com.unity.ugui": "1.0.0", - "com.unity.xr.legacyinputhelpers": "2.1.10", + "com.unity.xr.legacyinputhelpers": "2.1.12", "com.unity.modules.ai": "1.0.0", "com.unity.modules.androidjni": "1.0.0", "com.unity.modules.animation": "1.0.0", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 12bc5cc1..37acd3a5 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -10,19 +10,32 @@ "version": "1.0.0", "depth": 0, "source": "builtin", - "dependencies": {} + "dependencies": { + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.uielements": "1.0.0" + } + }, + "com.unity.ai.navigation": { + "version": "1.1.6", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.modules.ai": "1.0.0" + }, + "url": "https://packages.unity.com" }, "com.unity.analytics": { - "version": "3.6.12", + "version": "3.8.1", "depth": 0, "source": "registry", "dependencies": { - "com.unity.ugui": "1.0.0" + "com.unity.ugui": "1.0.0", + "com.unity.services.analytics": "1.0.4" }, "url": "https://packages.unity.com" }, "com.unity.collab-proxy": { - "version": "2.0.0", + "version": "2.7.1", "depth": 0, "source": "registry", "dependencies": {}, @@ -43,7 +56,7 @@ "url": "https://packages.unity.com" }, "com.unity.ide.rider": { - "version": "3.0.18", + "version": "3.0.36", "depth": 0, "source": "registry", "dependencies": { @@ -52,7 +65,7 @@ "url": "https://packages.unity.com" }, "com.unity.ide.visualstudio": { - "version": "2.0.17", + "version": "2.0.22", "depth": 0, "source": "registry", "dependencies": { @@ -60,24 +73,53 @@ }, "url": "https://packages.unity.com" }, + "com.unity.nuget.newtonsoft-json": { + "version": "3.2.1", + "depth": 3, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.services.analytics": { + "version": "6.0.3", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.services.core": "1.12.4", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.services.core": { + "version": "1.14.0", + "depth": 2, + "source": "registry", + "dependencies": { + "com.unity.modules.androidjni": "1.0.0", + "com.unity.nuget.newtonsoft-json": "3.2.1", + "com.unity.modules.unitywebrequest": "1.0.0" + }, + "url": "https://packages.unity.com" + }, "com.unity.sysroot": { - "version": "1.0.0", + "version": "2.0.5", "depth": 1, "source": "registry", "dependencies": {}, "url": "https://packages.unity.com" }, "com.unity.sysroot.linux-x86_64": { - "version": "1.0.0", + "version": "2.0.4", "depth": 1, "source": "registry", "dependencies": { - "com.unity.sysroot": "1.0.0" + "com.unity.sysroot": "2.0.5" }, "url": "https://packages.unity.com" }, "com.unity.test-framework": { - "version": "1.1.31", + "version": "1.1.33", "depth": 0, "source": "registry", "dependencies": { @@ -88,7 +130,7 @@ "url": "https://packages.unity.com" }, "com.unity.textmeshpro": { - "version": "3.0.6", + "version": "3.0.7", "depth": 0, "source": "registry", "dependencies": { @@ -97,7 +139,7 @@ "url": "https://packages.unity.com" }, "com.unity.timeline": { - "version": "1.6.4", + "version": "1.7.7", "depth": 0, "source": "registry", "dependencies": { @@ -109,12 +151,12 @@ "url": "https://packages.unity.com" }, "com.unity.toolchain.win-x86_64-linux-x86_64": { - "version": "1.0.0", + "version": "2.0.4", "depth": 0, "source": "registry", "dependencies": { - "com.unity.sysroot": "1.0.0", - "com.unity.sysroot.linux-x86_64": "1.0.0" + "com.unity.sysroot": "2.0.5", + "com.unity.sysroot.linux-x86_64": "2.0.4" }, "url": "https://packages.unity.com" }, @@ -128,7 +170,7 @@ } }, "com.unity.xr.legacyinputhelpers": { - "version": "2.1.10", + "version": "2.1.12", "depth": 0, "source": "registry", "dependencies": { @@ -269,17 +311,6 @@ "version": "1.0.0", "depth": 0, "source": "builtin", - "dependencies": { - "com.unity.modules.ui": "1.0.0", - "com.unity.modules.imgui": "1.0.0", - "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.modules.uielementsnative": "1.0.0" - } - }, - "com.unity.modules.uielementsnative": { - "version": "1.0.0", - "depth": 1, - "source": "builtin", "dependencies": { "com.unity.modules.ui": "1.0.0", "com.unity.modules.imgui": "1.0.0", diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 8e3af85c..b8523623 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2021.3.19f1 -m_EditorVersionWithRevision: 2021.3.19f1 (c9714fde33b6) +m_EditorVersion: 2022.3.62f2 +m_EditorVersionWithRevision: 2022.3.62f2 (7670c08855a9) diff --git a/ProjectSettings/boot.config b/ProjectSettings/boot.config deleted file mode 100644 index e69de29b..00000000