Bladeren bron

[unity] Fixed loading Editor icons, directory was assumed at wrong location after assets have been moved.

Harald Csaszar 6 jaren geleden
bovenliggende
commit
bc856187d3

+ 3 - 1
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[] assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities");
 			string assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
 			string assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
 			editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
 			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();
 			Icons.Initialize();
 
 
 			// Drag and Drop
 			// Drag and Drop