▶ Problem situation
1. Trying to create a fade-in effect using multiple canvases (using SkeletonGraphic)
2. The original intention was to create the effect of water droplets spreading through water.
3. When the animation is executed, only some textures are displayed and an error log is recorded.
4. When I take Debug.Log() in SekeletonGraphic.cs, it shows that "var submeshMaterial == null" for some materials.
NullReferenceException: Object reference not set to an instance of an object
Spine.Unity.SkeletonGraphic.UpdateMaterialsMultipleCanvasRenderers (Spine.Unity.SkeletonRendererInstruction currentInstructions) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:778)
Spine.Unity.SkeletonGraphic.UpdateMeshToInstructions () (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:690)
Spine.Unity.SkeletonGraphic.Rebuild (UnityEngine.UI.CanvasUpdate update) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:286)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/CanvasUpdateRegistry.cs:215)
UnityEngine.Canvas:SendWillRenderCanvases()
Spine.Unity.SkeletonGraphic.UpdateMaterialsMultipleCanvasRenderers (Spine.Unity.SkeletonRendererInstruction currentInstructions) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:778)
Spine.Unity.SkeletonGraphic.UpdateMeshToInstructions () (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:690)
Spine.Unity.SkeletonGraphic.Rebuild (UnityEngine.UI.CanvasUpdate update) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs:286)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/CanvasUpdateRegistry.cs:215)
UnityEngine.Canvas:SendWillRenderCanvases()
▶ Version information
Spine Version : 4.1.15 PRO, Launcher: 4.1.10
Unity Version : 2020.3.33f1 (DX11)
1. This is the first time I've dealt with spine animation, so I don't think I could convey enough information. Please let me know if there is any information you need.
2. If there was a case similar to this, it is good to link the thread. If this does not work, I will contact you again.
-----
제목 : Multiple CanvasRenderers에서 submeshMaterial을 찾을 수 없습니다.
▶ 문제 상황
1. Multiple Canvas를 사용하여 페이드인 효과를 내려고 한다
2. 본래 의도는 여러 물방울이 물에 퍼지는 듯한 효과를 내려 했다.
3. 애니메이션을 실행하니 일부 텍스쳐만 표시되고 에러 로그가 찍힌다.
4. SekeletonGraphic.cs에서 Debug.Log()를 찍어보니 일부 Material에 대하여 var submeshMaterial == null 상태라고 뜬다.
▶ 버전 정보
Spine :
Client : Unity 2020.3.33f1 (DX11)
---
1. 스파인 애니메이션을 이번에 처음 다뤄서 정보를 충분히 전달하지 못했을 것 같다. 필요한 정보 있으면 말해 달라.
2. 이와 비슷한 사례가 있었다면 해당 쓰레드의 링크 걸어줘도 좋다. 해결이 안된다면 다시 문의하겠다.