mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[unity] Fixed loading Editor icons, directory was assumed at wrong location after assets have been moved.
This commit is contained in:
parent
fb6acbf3c0
commit
bc856187d3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user