Unity Version: 2022.3.20f1
Spine Version: 4.2-2024-12-20
Spine URP Shaders Version: 4.2.39
I created a dash animation for characters, where the alpha value is adjusted to 0 after the dash starts and then restored to 1 shortly after, creating an effect where the character disappears and reappears.
However, with some characters, the following error message is displayed every frame whenever the alpha value is adjusted. (The animations were made in almost the same way for all characters, but some characters don’t have this issue, making it even more confusing.)
NullReferenceException: Object reference not set to an instance of an object
Spine.Unity.MeshGenerator.AddSubmesh (Spine.Unity.SubmeshInstruction instruction, System.Boolean updateTriangles) (at Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs:576)
Spine.Unity.SkeletonRenderer.LateUpdateMesh () (at Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs:628)
Spine.Unity.SkeletonRenderer.LateUpdate () (at Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs:589)
Spine.Unity.SkeletonAnimation.LateUpdate () (at Assets/Spine/Runtime/spine-unity/Components/SkeletonAnimation.cs:291)
The animation itself works fine, but the error messages are very distracting, so I’d like to resolve this issue. What could be causing it?