KhronosGroup / KhronosGroup/UnityGLTF

GTLF importer doesn't set Root Motion to true when animation type is mecanim (non-humanoid)

Open
#869 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug 💬

This behavior is inconsistent with FBX importer and requires user to apply an prefab override manually on every single model imported.

FBX Importer (!!! IMPORTANT !!!! For this to work, Root node in "Rig" tab must be assigned correctly):
![Image](https://github.com/user-attachments/assets/816eb912-f427-4716-95d3-2e0cc65f17f7)

UnityGLTF Importer:
![Image](https://github.com/user-attachments/assets/2c8103be-5955-430d-a094-9b993eb2e1b2)

### Steps to reproduce 🔢

1. Import a model with "Generic" animation type.
2. See that Root Motion is unchecked.

### Files to reproduce the issue ♻

Model files are added in the comment section.

### Editor Version 🎲

Other (Provide details below)

### Render Pipeline and version

Not relevant

### UnityGLTF Version

2.17.1

### Operating System 👩‍💻

Windows

### When does this problem happen?

- [x] Editor Import
- [ ] Runtime Import
- [ ] Editor Export
- [ ] Runtime Export

### Additional Info 📜

_No response_

### Validations 🩹

- [x] I have [searched existing issues](https://github.com/KhronosGroup/UnityGLTF/issues): no issue already exist that reports the same problem.
- [x] I follow the [Code of Conduct](https://www.khronos.org/about/code-of-conduct)
- [x] I provided a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example), including files when necessary.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the editor-import case with a model using Generic/Mecanim animation type, then trace the UnityGLTF importer path that configures Root Motion. Compare its result with the FBX importer behavior; done when imported Generic animations have Root Motion enabled without a prefab override.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.