mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +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 {
|
||||
rawVersion = SkeletonBinary.GetVersionString(new MemoryStream(asset.bytes));
|
||||
//Debug.Log(rawVersion);
|
||||
isSpineData = !(string.IsNullOrEmpty(rawVersion));
|
||||
} catch (System.Exception e) {
|
||||
Debug.LogErrorFormat("Failed to read '{0}'. It is likely not a binary Spine SkeletonData file.\n{1}", asset.name, e);
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user