I’ve been trying to import an .fbx model file from Blender all day, and the problem is. Upon importing the mesh, the a certain part of the rig gets rotated a bit, I’ll show an example of my problem.
However, the model/rig appears to be just fine in Blender, and even separate model viewing software, the slide of the gun is straight as it should be.
This is happening in Unity alone. I’ve been trying all day, and this has started to tick me off. I’m beginning to think this is a Unity bug.
I’m using Unity 5.
You have created the model facing downwards in edit mode. Always best to create it in its actual frame 0 starting place.
There’s also a hole in your silencer.
Your mesh is non-manifold : You need to plug up the holes.
Your rotation issue, I believe, is a result of Bone Rotation error. The Glock-Slide depends on the rotation of Bone2 which is dependent on the rotation on Bone1 etc.
The rotation of the Glock-Slide should depend on the rotation of the Glock-Body instead.
Your bones also look like they are all pointing in random directions.
The fix is to select the Slide Bone2 and go to edit mode. With that bone alone selected change bone roll from -90 to 0.
This corrected the rotation when I tried your model.