Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniGLTF1.28 export when the model contain animator, it can't work #365

Closed
643364103 opened this issue Jan 8, 2020 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@643364103
Copy link

Describe the bug

uniGLTF1.28 export when the model contain animator, it can't work

NullReferenceException
UniGLTF.AnimationExporter.Export (UnityEngine.AnimationClip clip, UnityEngine.Transform root, System.Collections.Generic.List`1 nodes) (at Assets/VRM/UniGLTF/Scripts/IO/AnimationExporter.cs:128)
UniGLTF.gltfExporter.FromGameObject (UniGLTF.glTF gltf, UnityEngine.GameObject go, Boolean useSparseAccessorForMorphTarget) (at Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs:311)
UniGLTF.gltfExporter.Export () (at Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs:144)
UniGLTF.gltfExporter.ExportFromMenu () (at Assets/VRM/UniGLTF/Scripts/IO/gltfExporter.cs:42)

@hiroj hiroj added the bug Something isn't working label Jan 8, 2020
@hiroj
Copy link
Contributor

hiroj commented Jan 8, 2020

Can you tell me the steps to create an error condition?
I imported the following model, set up Animator and tested it, but I could not find any errors.
https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/CesiumMan

@643364103
Copy link
Author

643364103 commented Jan 10, 2020

@hiroj
CesiumMan is use animations.
test.zip
This model is download from unity assets store.
When exporting glb, there will be many warnings and no errors. But this glb can not be loaded.

Environment: unity 2017.5.5f1

@PoChang007
Copy link
Contributor

Any chance of trying later versions like unity 2018, 2019? Not sure it will work though

@akehir
Copy link

akehir commented May 2, 2020

I had the same issue. Deleting the Animator fixed it for me.

Settings of reproduction with CesiumMan. Unity 2013.3.12f1.

image

image

@PoChang007
Copy link
Contributor

Nice! This interface looks like you were using Unity 2019?
@643364103 Please try akehir's method with the latest Unity version and see if it works for you.
Thanks,

@PoChang007
Copy link
Contributor

This issue will be closed. Feel free to reopen it if errors still occur.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants