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

Inconsistency between editor imported animations and runtime imported animations #18

Open
Myonmu opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Myonmu
Copy link

Myonmu commented May 6, 2024

Describe the bug
A clear and concise description of what the bug is.

Gltf animation imported in Editor, loaded via Addressables and animated with Playable Graph Api will loop when reaching the end of an animation clip.

Gltf animation imported in runtime, loaded via Gltfast api (Animation method set to Mecanim) and animated with Playable Graph Api will stuck at the end of the clip (last frame).

Apparently, runtime imported animations do not have Loop Time enabled. I wasn't able to find a way to specify whether to enable it.

Files

Attach or link to .gltf/.glb files that trigger the bug.

The model contains 2 animations: anim1 and anim2. Exported from blender.

test.zip

In addition, make sure to run those files through the glTF Validator first. If you encounter errors or warnings, try to make sure they are not responsible for the issue and file a bug report with the software that generated the glTF file as well.

Note: You have to ZIP archive them first in order for GitHub to accept the upload.

If your files are confidential:

  • Try to create a similar, but intellectual-property-free glTF that reproduces the bug in the same way (so any community member can have a look)
  • Otherwise, still create this issue and send the files (or a link to them) discretely via email

To Reproduce
Steps to reproduce the behavior:

Just load it up with the api in runtime and the animation clips does not have Loop Time enabled. Drag it directly into the project view would result it having animations with Loop Time enabled.

Expected behavior
A clear and concise description of what you expected to happen.

Same behavior between editor imported animation and runtime imported animations. Or at least a way to specify should the Loop Time be enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • glTFast version 6.2.0
  • Unity Editor version 6000.0.0f1
  • Render Pipeline and version URP 17.0.3
  • Platform: Editor

additionally (if significant for the bug):

Additional context
Add any other context about the problem here.

Now think about it this might be more like a feature request.

@Myonmu Myonmu added the bug Something isn't working label May 6, 2024
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

1 participant