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

Runtime export GLB with animation clip #765

Open
cyborgs-pro opened this issue Aug 16, 2024 · 2 comments
Open

Runtime export GLB with animation clip #765

cyborgs-pro opened this issue Aug 16, 2024 · 2 comments

Comments

@cyborgs-pro
Copy link

cyborgs-pro commented Aug 16, 2024

I tried exporting GLB via code from the editor, everything works fine. But when I made the build on Android, there was no animation clip inside GLB. The documentation says that exporting animation to runtime is supported.
How to make export animation clip on the device in .GLB together with the model?

I use: UnityGLTF.GLTFSceneExporter(---).SaveGLB(---)

@cyborgs-pro
Copy link
Author

Ok. I found solution: Use: GLTFRecorderComponent class.
It's gonna take some time to record the clip, but it suits me fine.

@pfcDorn
Copy link
Contributor

pfcDorn commented Aug 27, 2024

Indeed AnimationClips themselves can't be exported at runtime, which is a limitation from Unity – the data can only be directly accessed inside the Editor. That's indeed why we're providing the GLTFRecorder class and timeline capabilities, to allow for runtime recording and export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants