mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +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[] 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user