Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Assets/Editor Toolbox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.14.4 [11.04.2026]

### Changed:
- Package support for Unity 6.4+

## 0.14.3 [29.12.2025]

### Added:
Expand Down
19 changes: 18 additions & 1 deletion Assets/Editor Toolbox/Editor/ToolboxEditorHandler.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand All @@ -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<Editor> cachedEditors = new Stack<Editor>();

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();
}

Expand Down
9 changes: 9 additions & 0 deletions Assets/Editor Toolbox/Editor/ToolboxEditorHierarchy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/// <summary>
Expand All @@ -38,7 +43,11 @@ static ToolboxEditorHierarchy()
/// <summary>
/// Tries to display item label in the Hierarchy Window.
/// </summary>
#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)
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/Editor Toolbox/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
19 changes: 10 additions & 9 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
85 changes: 58 additions & 27 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand All @@ -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": {
Expand All @@ -52,32 +65,61 @@
"url": "https://packages.unity.com"
},
"com.unity.ide.visualstudio": {
"version": "2.0.17",
"version": "2.0.22",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.9"
},
"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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand All @@ -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"
},
Expand All @@ -128,7 +170,7 @@
}
},
"com.unity.xr.legacyinputhelpers": {
"version": "2.1.10",
"version": "2.1.12",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -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)
Empty file removed ProjectSettings/boot.config
Empty file.
Loading