Animations missing from SkinnedMesh after Export

Hi Everyone :slightly_smiling_face:

I’m trying to export SkinnedMeshes for my Game project (react-three-fiber), but the Animations are missing.
I can see the Animation Clips inside Unity (see Screenshots) but they’re missing after I export them (I checked in Blender as well as gltf-viewer).

My workflow has been:

  1. Create minimal Needle Scene
  2. Drag a Prefab from an assets package into the Scene
  3. Export via Needle Tools → Selected Object as glb

I’ve tried to follow the needle docs but I’m probably missing something. It also doesn’t help that I have terribly little knowledge of Unity itself :D, I’m mainly using it to get assets and export them for the web (which needle is a blessing for <3)

I’d appreciate any help :slightly_smiling_face:
Best Regards,
Brian


Original Post on Discord

by user 776506054711836722

Hey Brian, did you assign the animation to the object somewhere? E.g. via Animation component, Animator + AnimatorController or another component of your own holding a reference to the clip?

Animations will only be exported if they are used somewhere

Ah sorry just see the Animator - does the assigned controller have a clip reference / states using that clip?

Additonally: can you check the Unity console for warnings / errors?

Hey Marcel,

No problem - thanks for the fast reply!
I’m not 100% sure but when I click on the Controller the window in the first screenshot opens up (which displays the clips)

by user 776506054711836722

Console looks clear (is the bottom message the latest?)

by user 776506054711836722

Thats the project view - it highlights the asset in your project hwen you single click. Can you double click this asset (thats the animator controller)
image.png

by user 776506054711836722

The console is closed / hidden in both screenshots (the message at the bottom in the first screenshot is just the asset path if you mean that?)

That’s the console:
image.png

Yeah I had the console open I just didn’t see the timestamps in the messages mb :sweat_smile: - no errors in the console

by user 776506054711836722

And no warnings either? Related to animations

that looks fine (assuming the states all have the clips assigned, you can double check by selecting them, the inspector (top right) should show a clip reference each)

Correction, there are errors/warnings but I think they’re from earlier. 16:49 I created a new needle scene

by user 776506054711836722

So I assumed that everything from the fresh scene came after “Setup Scene complete”

by user 776506054711836722

Ah yes that’s fine.

Could you check in the browser that they’re really missing by adding ?printGltf to the url and then checking the browser console (opens in F12) messages - it prints the glbs being loaded with the array of animations they contain
image.png

I think they do
Each one shows something linked under motion

by user 776506054711836722

You mean using the needle local hosting setup?
I’ve only been using it for exports so far and haven’t set it up yet :confused:

Its missing in https://gltf-viewer.donmccurdy.com/ though

by user 776506054711836722

Hey @Brian Breiholz , so you’re using that in an external react-three-fiber project or inside a Needle Runtime project?

So I’m pretty sure they’re really missing (sometimes tricky to tell in Blender if Actions have no User etc.)

by user 776506054711836722