UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

NullReferenceException when loading skeletal animation

Open stevenvergenz opened this issue 6 years ago • 8 comments

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?

stevenvergenz avatar Nov 28 '18 23:11 stevenvergenz

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

yaakovyitzchak avatar May 21 '19 07:05 yaakovyitzchak

I am also still having this issue

InnoLuke avatar Oct 07 '20 11:10 InnoLuke

me too, any ideas? Thanks in advance

julia1981 avatar Oct 07 '20 12:10 julia1981

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.

InnoLuke avatar Oct 08 '20 18:10 InnoLuke

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!

julia1981 avatar Oct 08 '20 19:10 julia1981

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

yaakovyitzchak avatar Oct 08 '20 23:10 yaakovyitzchak

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

julia1981 avatar Oct 09 '20 00:10 julia1981

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

yaakovyitzchak avatar Oct 09 '20 07:10 yaakovyitzchak

Fixed in latest release

pfcDorn avatar Feb 09 '24 08:02 pfcDorn