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

export VRM with animation clip at runtime #1113

Closed
marcusx2 opened this issue Jul 23, 2021 · 1 comment
Closed

export VRM with animation clip at runtime #1113

marcusx2 opened this issue Jul 23, 2021 · 1 comment

Comments

@marcusx2
Copy link

Is this possible? It seems that the model is exported to VRM without the animation clip attached to the animator. I found some code that deals with AnimationClip at gltfExporter.cs, but only at editortime, not runtime. So exporting VRM at runtime with animation clips is not supported? Will it ever be? Thank you for your time.

@Santarh
Copy link
Contributor

Santarh commented Jul 25, 2021

Thanks your issue.
Unfortunately, no, we can't export AnimationClip at runtime.
Because Unity doesn't provide the TRS information in AnimationClip at runtime.

Unity internally combines position curves, scale curves, and rotation curves.
https://docs.unity3d.com/ScriptReference/AnimationUtility.GetEditorCurve.html

@Santarh Santarh closed this as completed Jul 25, 2021
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