From 42635d2a8feaba0814becffe0949487a3ae4572e Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 24 Jan 2024 17:10:54 +0100 Subject: [PATCH] [unity] Editor icons not loaded from UPM package on Unity 2022.1. Closes #2455. --- .../spine-unity/Editor/Utility/SpineEditorUtilities.cs | 5 ++--- spine-unity/Assets/Spine/package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs index 95d69a951..86a63a79f 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs @@ -172,15 +172,14 @@ namespace Spine.Unity.Editor { if (EditorApplication.isPlayingOrWillChangePlaymode) return; - string[] folders = { "Assets", "Packages" }; string[] assets; string assetPath; - assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer", folders); + assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer", null); if (assets.Length > 0) { assetPath = AssetDatabase.GUIDToAssetPath(assets[0]); editorGUIPath = Path.GetDirectoryName(assetPath).Replace('\\', '/'); } - assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities", folders); + assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities", null); if (assets.Length > 0) { assetPath = AssetDatabase.GUIDToAssetPath(assets[0]); editorPath = Path.GetDirectoryName(assetPath).Replace('\\', '/'); diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index a37922cd6..4a4956a2b 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.1.34", + "version": "4.1.35", "unity": "2018.3", "author": { "name": "Esoteric Software",