Importing meshes from Maya missing bones

So, when I try to import a character I rigged in Maya, even if I delete everything in the scene and use the “export all” function when I open it in Unreal, It’s missing all its bones. If I select only the mesh and the bones and use “export selection” I get only the mesh, no bones or materials.
Also, I’m exporting as FBX.alt text

So, after toying with somethings I managed to get the bones to appear on Unreal but only when I use “Export All”, so I have to delete everything else in the scene.

Hello, same trouble, could you let me know exactly what you did?