It seems like you are encountering an issue with the inheritance of scale and rotation keyframes in Unity when using Spine animations. This problem might be related to a version mismatch or a bug in the spine-unity runtime.
Here are a few steps you can take to troubleshoot and potentially resolve the issue:
Check Versions: Ensure that you are using the latest versions of both the Spine editor and the spine-unity runtime. Version mismatches can often cause unexpected behavior.
- You can find the version of the spine-unity runtime in
Assets/Spine/version.txt
or in the Unity Package Manager.
Disable Animation Clean Up: When exporting your Spine animations, make sure that the Animation clean up
option is disabled. This has been known to cause issues with keyframes in Unity.
- This can be done in the export settings window in the Spine editor.
Key Transform Inheritance: In Spine 4.2, you can now key transform inheritance for bones. Ensure that you are correctly setting these keys and that they are not being unintentionally overridden.
- If you are not using this feature, it should work as before, so double-check your keyframes and inheritance settings.
SkeletonUtilityBone Hierarchy: If you are using a SkeletonUtilityBone
hierarchy in Unity, be aware that Unity does not support disabling inheritance of scale or rotation in the Transform hierarchy. This could be causing the issue.
- Avoid using
SkeletonUtilityBone
in Override
mode if possible.
Preview in Unity: Check if the animations look correct in the Preview section of the Inspector window in Unity. If they do not, there might be an issue with the export from Spine.
- If the problem persists, consider sending your Spine project to Esoteric Software for further investigation.
If these steps do not resolve the issue, it might be a bug that needs to be addressed by the Spine development team. You can follow the issue on their GitHub page: Spine Editor Issue #725.
I hope this helps you resolve the issue with inheritance keyframes in Unity.