glTFast icon indicating copy to clipboard operation
glTFast copied to clipboard

Animation cannot loop when using GltfImport with 'mecanim' settings

Open edwinhan1983 opened this issue 2 years ago • 1 comments

I tried to download a glb with animations using GltfImport with 'mecanim' settings by code in runtime, then would use AnimatorOverrideController to change old animation clip to this new animation clip. (I can not use 'legacy' settings because legacy animation clip is not working with AnimatorOverrideController in unity).

Everything works fine except the animation can not loop even with 'WrapMode.Loop' configured.

I did find a similar record here: https://github.com/atteneder/glTFast/issues/291, but the manually editing method is not very suitable for my case, is there any new changes that we can change the animation clip to loop through runtime code?

thanks.

edwinhan1983 avatar Dec 12 '23 09:12 edwinhan1983

Thanks for reporting.

Fist, Mecanim is not tested at runtime, only the legacy animation system is.

Could you please provide a small code sample (or entire project) so I can reproduce it easily?

atteneder avatar Aug 09 '24 09:08 atteneder

Closing due to lack of details.

atteneder avatar Dec 16 '24 13:12 atteneder