mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] Handle TextAssets not found.
This commit is contained in:
parent
928f4b8e14
commit
d288fab664
@ -589,7 +589,8 @@ namespace Spine.Unity.Editor {
|
||||
imagePaths.Add(str);
|
||||
break;
|
||||
case ".json":
|
||||
if (IsSpineData((TextAsset)AssetDatabase.LoadAssetAtPath(str, typeof(TextAsset))))
|
||||
var jsonAsset = (TextAsset)AssetDatabase.LoadAssetAtPath(str, typeof(TextAsset));
|
||||
if (jsonAsset != null && IsSpineData(jsonAsset))
|
||||
skeletonPaths.Add(str);
|
||||
break;
|
||||
case ".bytes":
|
||||
@ -1215,6 +1216,8 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
|
||||
public static bool IsSpineData (TextAsset asset) {
|
||||
if (asset == null) return false;
|
||||
|
||||
bool isSpineData = false;
|
||||
string rawVersion = null;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user