KhronosGroup / UnityGLTF

Runtime glTF 2.0 Loader for Unity3D
MIT License
1.83k stars 489 forks source link

NullReferenceException when loading skeletal animation #304

Closed stevenvergenz closed 9 months ago

stevenvergenz commented 5 years ago

This file is loaded by every other app just fine, and passes validation, but throws the below error in UnityGLTF: altspace-cube - Copy.zip

NullReferenceException: Object reference not set to an instance of an object
UnityGLTF.GLTFSceneImporter+<SetupBones>d__61.MoveNext () (at <a63ed9cb9b854f709fa6f4b9577efac1>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

I don't have time to track this down right now. Any ideas?

yaakovyitzchak commented 5 years ago

Im having a siilar issue with a simple skinned mesh exported from blender -- any ideas?

InnoLuke commented 4 years ago

I am also still having this issue

julia1981 commented 4 years ago

me too, any ideas? Thanks in advance

InnoLuke commented 4 years ago

I was having this issue with a GLB model exported with the built-in exporter in Cinema 4D. I worked around the issue by exporting the model as FBX instead, and then using https://github.com/facebookincubator/FBX2glTF to convert the FBX to a GLB, which then worked well with UnityGLTF.

julia1981 commented 4 years ago

thank you @InnoLuke for the tip. unfortunately, I cannot use it in this form. Since I develop for Android. Are there no other possibilities? For me, it is important to fix this problem. Thanks a lot!

yaakovyitzchak commented 4 years ago

@julia1981 I just used siccity gltf ladder, a lot simpler and actually works

julia1981 commented 4 years ago

@yaakovyitzchak Thank you very much, unfortunately you cannot export at runtime. 😪

yaakovyitzchak commented 4 years ago

Oh brutal, that is correct lol.. I guess someone needs to add it some way

pfcDorn commented 9 months ago

Fixed in latest release