Unity3D glTF加载3d对象时缓冲区中的数组无效

时间:2017-11-13 14:12:04

标签: unity3d plugins gltf

我正在使用glTF Unity3D Loader。我想实时加载一些glTF格式的3D对象。使用glTF文件,它们包含在示例中,效果很好。但是当我尝试加载我的3D对象时,我收到了这个错误:

有谁知道我该如何处理?

Exception: Invalid array at: buffers
GLTF.Extensions.JsonReaderExtensions.ReadList[Buffer] (Newtonsoft.Json.JsonReader reader, System.Func`1 deserializerFunc) (at C:/Users/johnmce/Documents/GitHub/UnityGLTF/GLTFSerialization/GLTFSerialization/Extensions/GLTFJsonExtensions.cs:50)
GLTF.Schema.GLTFRoot.Deserialize (System.IO.TextReader textReader) (at C:/Users/johnmce/Documents/GitHub/UnityGLTF/GLTFSerialization/GLTFSerialization/Schema/GLTFRoot.cs:151)
GLTF.GLTFParser.ParseString (System.String gltfContent) (at C:/Users/johnmce/Documents/GitHub/UnityGLTF/GLTFSerialization/GLTFSerialization/GLTFParser.cs:123)
GLTF.GLTFParser.ParseJson (System.Byte[] gltfBinary) (at C:/Users/johnmce/Documents/GitHub/UnityGLTF/GLTFSerialization/GLTFSerialization/GLTFParser.cs:40)
UnityGLTF.GLTFSceneImporter+<Load>c__Iterator0.MoveNext () (at Assets/UnityGLTF/Scripts/GLTFSceneImporter.cs:124)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

1 个答案:

答案 0 :(得分:0)

<强>解决方案:

当前2.0解析器不支持许多1.1版文件。