From bc856187d361a557c6fabcae0f0157ebebfa06c3 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 1 Aug 2019 16:05:37 +0200 Subject: [PATCH] [unity] Fixed loading Editor icons, directory was assumed at wrong location after assets have been moved. --- .../Editor/spine-unity/Editor/Utility/SpineEditorUtilities.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 c7204cde9..0dbb42bfa 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 @@ -95,8 +95,10 @@ namespace Spine.Unity.Editor { string[] assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities"); string assetPath = AssetDatabase.GUIDToAssetPath(assets[0]); editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/"); - editorGUIPath = editorPath + "/GUI"; + assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer"); + assetPath = AssetDatabase.GUIDToAssetPath(assets[0]); + editorGUIPath = Path.GetDirectoryName(assetPath).Replace("\\", "/"); Icons.Initialize(); // Drag and Drop