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

This commit is contained in:
Harald Csaszar 2019-08-01 16:05:37 +02:00
parent fb6acbf3c0
commit bc856187d3

View File

@ -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