- Змінено
Issues with Skeleton Utility in Unity and skinned bones
When I add Skeleton Utility and spawn bone hierarchy, these errors keep popping up endlessly on bones that are assigned to skins. Some bones that throw errors don't show their attachments or if attachments are rendered, some of them are weirdly stretched.
In Spine:
In engine with a spawned bone hierarchy:
Affected bones for this skin:
Affected bones are skinned bones only, I currently have 6 different skins. Each skin has some unique bones.
If I don't add Skeleton Utility and don't spawn bone hierarchy everything renders properly and I don't get any errors.
I'm also using the new Polygon packer if that changes anything.
Unity 2019.1.9f1
Runtimes - latest 3.8, (23.08)
Spine 3.8.64
Assertion failed on expression: 'CompareApproximately(SqrMagnitude(result), 1.0F)'
UnityEngine.Quaternion:Euler(Single, Single, Single)
Spine.Unity.SkeletonUtilityBone:DoUpdate(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs:157)
Spine.Unity.SkeletonUtility:UpdateAllBones(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:286)
Spine.Unity.SkeletonUtility:UpdateWorld(ISkeletonAnimation) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:270)
Spine.Unity.SkeletonAnimation:Update(Single) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:196)
Spine.Unity.SkeletonAnimation:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:172)
transform.localPosition assign attempt for 'camellia_flower_2_2' is not valid. Input localPosition is { NaN, NaN, 0.000000 }.
UnityEngine.Transform:set_localPosition(Vector3)
Spine.Unity.SkeletonUtilityBone:DoUpdate(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs:153)
Spine.Unity.SkeletonUtility:UpdateAllBones(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:286)
Spine.Unity.SkeletonUtility:UpdateWorld(ISkeletonAnimation) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:270)
Spine.Unity.SkeletonAnimation:Update(Single) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:196)
Spine.Unity.SkeletonAnimation:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:172)
Assertion failed on expression: 'CompareApproximately(SqrMagnitude(result), 1.0F)'
UnityEngine.Quaternion:Euler(Single, Single, Single)
Spine.Unity.SkeletonUtilityBone:DoUpdate(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs:157)
Spine.Unity.SkeletonUtility:UpdateAllBones(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:286)
Spine.Unity.SkeletonUtility:UpdateWorld(ISkeletonAnimation) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:270)
Spine.Unity.SkeletonAnimation:Update(Single) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:196)
Spine.Unity.SkeletonAnimation:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:172)
transform.localRotation assign attempt for 'camellia_flower_2_2' is not valid. Input rotation is { NaN, NaN, NaN, NaN }.
UnityEngine.Transform:set_localRotation(Quaternion)
Spine.Unity.SkeletonUtilityBone:DoUpdate(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs:157)
Spine.Unity.SkeletonUtility:UpdateAllBones(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:286)
Spine.Unity.SkeletonUtility:UpdateWorld(ISkeletonAnimation) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:270)
Spine.Unity.SkeletonAnimation:Update(Single) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:196)
Spine.Unity.SkeletonAnimation:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:172)
transform.localScale assign attempt for 'camellia_flower_2_2' is not valid. Input localScale is { 0.000000, NaN, 1.000000 }.
UnityEngine.Transform:set_localScale(Vector3)
Spine.Unity.SkeletonUtilityBone:DoUpdate(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtilityBone.cs:165)
Spine.Unity.SkeletonUtility:UpdateAllBones(UpdatePhase) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:286)
Spine.Unity.SkeletonUtility:UpdateWorld(ISkeletonAnimation) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonUtility/SkeletonUtility.cs:270)
Spine.Unity.SkeletonAnimation:Update(Single) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:196)
Spine.Unity.SkeletonAnimation:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:172)
We are sorry for the trouble! Thanks for reporting!
Unfortunately we could not reproduce the issue. Could you please send us a minimal reproduction Unity project as a zip package that still shows the error? You can send it to contact@esotericsoftware.com.
I've sent the project in email as requested.
The errors pop up when the parent object of the rig is selected in hierachy and in Play mode.
Thanks very much, we received the package and are now able to reproduce the problem. We will get back to you as soon as we have a bugfix to offer.
Any updates on the issue? I see it has been in progress for a while.
Not yet, sorry. I had a look at it on Thursday and had to put it on hold since I was travelling on Friday over the weekend (and it was not very suitable to work on it while travelling, if you know what I mean).
All I can say for now is that there were some NaN values propagated that make it a bit more difficult to track down where exactly they were coming from (and on top of that, my debugger showed inconsistent behaviour). But you can rest assured, it will be fixed soon.
The issue has now been resolved. It turned out to have been more trivial than what I have previously searched for.
Updated unitypackages can be download here as usual:
Spine Unity Download
Thanks a lot! The console is squeaky clean in my test project and main project as well. So far everything seems to be in order. Thank you for the great support as always!
Glad to hear it resolved the problems, thanks for getting back to us!