mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-26 11:41:23 +08:00
[unity] Fix binary version check.
This commit is contained in:
parent
343f144c93
commit
467853a786
@ -1191,6 +1191,7 @@ namespace Spine.Unity.Editor {
|
|||||||
try {
|
try {
|
||||||
rawVersion = SkeletonBinary.GetVersionString(new MemoryStream(asset.bytes));
|
rawVersion = SkeletonBinary.GetVersionString(new MemoryStream(asset.bytes));
|
||||||
//Debug.Log(rawVersion);
|
//Debug.Log(rawVersion);
|
||||||
|
isSpineData = !(string.IsNullOrEmpty(rawVersion));
|
||||||
} catch (System.Exception e) {
|
} catch (System.Exception e) {
|
||||||
Debug.LogErrorFormat("Failed to read '{0}'. It is likely not a binary Spine SkeletonData file.\n{1}", asset.name, e);
|
Debug.LogErrorFormat("Failed to read '{0}'. It is likely not a binary Spine SkeletonData file.\n{1}", asset.name, e);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user