• RuntimesUnity
  • SkeletonGraphic stop rendering when scale to 0

  • 編集済み

When I change the scale of a SkeletonGraphic to 0 and change it back to 1, It stops rendering.
I have also checked the SkeletonAnimation, the problem is same.
However everything is ok in SkeletonRenderer.
I'm upgrading the Spine Runtime from 3.8 to 4.2. There is no problem in 3.8. So I'm wondering is anything changed in newest runtime?

Below is the error message when using SkeletonAnimation:

Assertion failed on expression: 'CompareApproximately(SqrMagnitude(result), 1.0F)'
UnityEngine.Quaternion:Euler (single,single,single)
Spine.Unity.Editor.SpineHandles:DrawBone (UnityEngine.Transform,Spine.Bone,single,single) (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs:225)
Spine.Unity.Editor.SpineHandles:DrawBones (UnityEngine.Transform,Spine.Skeleton,single) (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs:184)
Spine.Unity.Editor.SkeletonRendererInspector:OnSceneGUI () (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs:208)
(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,UnityEditor.Editor)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Quaternion To Matrix conversion failed because input Quaternion is invalid {nan, nan, nan, nan} l=nan
UnityEngine.Matrix4x4:TRS (UnityEngine.Vector3,UnityEngine.Quaternion,UnityEngine.Vector3)
Spine.Unity.Editor.SpineHandles:DrawBone (UnityEngine.Transform,Spine.Bone,single,single) (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs:231)
Spine.Unity.Editor.SpineHandles:DrawBones (UnityEngine.Transform,Spine.Skeleton,single) (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Utility/SpineHandles.cs:184)
Spine.Unity.Editor.SkeletonRendererInspector:OnSceneGUI () (at ./Library/PackageCache/com.gongfubb.spine@4.0.4-etc2-mod/Spine/Editor/spine-unity/Editor/Components/SkeletonRendererInspector.cs:208)
(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,UnityEditor.Editor)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Related Discussions
...

Not every Spine has this problem. Some are ok, and some will stop rendering.

I have checked all problematic spines. I found the problem is the Physics Inheritance. All the Physics Inheritance Bones will disappear when the scale change to 0 and change back.

@Fish Sorry to hear you're having troubles. Thanks for posting the stack trace, unfortunately we could not reproduce the issue you are encountering. Your stack trace shows SpineHandles.cs line 231, which is not an executable line however and implies that you are not using the latest spine-unity 4.2 runtime package version. Could you please have a try whether updating to the latest runtime resolves the issue?

If not, could you please send us a minimal Unity project which still shows this issue? You can send it as a zip package to contact@esotericsoftware.com, briefly mentioning this forum thread URL so that we know the context. Then we can have a look at what's going wrong.

  • Fish がこの投稿に返信しました。
    5日 後

    Harald
    Everything goes right after I upgrade the Runtime to the newest version.

    @Fish Very glad to hear, thanks for getting back to us.