mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed potential (non-critical) error messages on first import due to import order. Related to commit regarding GUI icon loading: bc85618.
This commit is contained in:
parent
bac735f7ed
commit
39a45060a3
@ -97,8 +97,13 @@ namespace Spine.Unity.Editor {
|
|||||||
editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
editorPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
||||||
|
|
||||||
assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer");
|
assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer");
|
||||||
|
if (assets.Length > 0) {
|
||||||
assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
||||||
editorGUIPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
editorGUIPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
editorGUIPath = editorPath.Replace("/Utility", "/GUI");
|
||||||
|
}
|
||||||
Icons.Initialize();
|
Icons.Initialize();
|
||||||
|
|
||||||
// Drag and Drop
|
// Drag and Drop
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user