This collection of Unity Editor tools provides essential functionalities for checking and fixing SkinnedMeshRenderer components in 3D models.
Do you know the situation when FBX Exporter can't export a model? Well, this script fixes it.
- Recursive Bone Checking: Checks all SkinnedMeshRenderers in the selected GameObject and its children.
- Immediate Diagnosis: Logs results instantly in the Unity Console to inform if there are missing bone references.
- Automatic Bone Repair: Detects and replaces missing bones with placeholder objects for all SkinnedMeshRenderers within the selected GameObject's children.
- Non-Destructive: Ensures the visual appearance of the mesh is not changed.
- Download last unitypackage: UnityBoneFixer Releases
- OR Clone/download the repository.
- Select a GameObject in the Unity Editor's hierarchy view.
- Right-click and choose
Check Skinned Mesh Bonesfrom the GameObject menu. - Review the Unity Console for messages about the integrity of the bones.
- Select the GameObject with SkinnedMeshRenderer components in the Unity Editor.
- Navigate to
GameObjectin the menu bar. - Click on
Fix Skinned Mesh Bones in Children. - A message in the Unity Console will confirm the completion of the operation.
- Triggers a recursive search through the selected GameObject's hierarchy.
- Checks each SkinnedMeshRenderer's bones array for null references.
- Reports back in the console about the status of each SkinnedMeshRenderer's bones.
- Scans for all SkinnedMeshRenderers within the children of the selected GameObject.
- Creates placeholder bones for any missing bone references and properly parents them under the root bone.
- Updates the bones array in SkinnedMeshRenderer to reference new placeholder bones.
Feel free to fork the repository, make changes, and submit a pull request if you have improvements or fixes to the tools.
If you have any issues or questions about these tools, please file an issue in the GitHub repository.
These tools are distributed under the MIT License.