mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Editor icons not loaded from UPM package on Unity 2022.1. Closes #2455.
This commit is contained in:
parent
2c6d10bef8
commit
42635d2a8f
@ -172,15 +172,14 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
if (EditorApplication.isPlayingOrWillChangePlaymode) return;
|
||||
|
||||
string[] folders = { "Assets", "Packages" };
|
||||
string[] assets;
|
||||
string assetPath;
|
||||
assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer", folders);
|
||||
assets = AssetDatabase.FindAssets("t:texture icon-subMeshRenderer", null);
|
||||
if (assets.Length > 0) {
|
||||
assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
||||
editorGUIPath = Path.GetDirectoryName(assetPath).Replace('\\', '/');
|
||||
}
|
||||
assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities", folders);
|
||||
assets = AssetDatabase.FindAssets("t:script SpineEditorUtilities", null);
|
||||
if (assets.Length > 0) {
|
||||
assetPath = AssetDatabase.GUIDToAssetPath(assets[0]);
|
||||
editorPath = Path.GetDirectoryName(assetPath).Replace('\\', '/');
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity",
|
||||
"displayName": "spine-unity Runtime",
|
||||
"description": "This plugin provides the spine-unity runtime core.",
|
||||
"version": "4.1.34",
|
||||
"version": "4.1.35",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user