I uploaded a first version of my app for my testers and noticed in my exception logging that apparently an error is thrown without doing any harm. At least that's what I can see when testing.
Live2D Cubism 2.1 / RenderMode.DrawMeshNow Error live2dmodel.draw() must be called in OnPostRender() or OnRenderObject() . -------------------
at live2d. :drawLast()
I used the newest code from the Unity sample app provided with the SDK.
Yeah, this error basically tells you that ALive2DModel.draw() shouldn't be called from MonoBehaviour.Update() when you use RenderMode.DrawMeshNow. Could you recheck that the script for drawing the model calls ALive2DModel.draw() in MonoBehaviour.OnRenderObject() like this:
Comments
ALive2DModel.draw()shouldn't be called fromMonoBehaviour.Update()when you useRenderMode.DrawMeshNow. Could you recheck that the script for drawing the model callsALive2DModel.draw()inMonoBehaviour.OnRenderObject()like this:private void OnRenderObject() { if (live2DModel == null) { return; } live2DModel.draw(); }void OnRenderObject() { if(!isVisible) return; if(model==null)return; if(model.GetLive2DModelUnity().getRenderMode() == Live2D.L2D_RENDER_DRAW_MESH_NOW) { model.Draw(); } if (LAppDefine.DEBUG_DRAW_HIT_AREA) { model.DrawHitArea(); } } void Update() { if(!isVisible) return; if (model == null) return; model.Update(); if (model.GetLive2DModelUnity().getRenderMode() == Live2D.L2D_RENDER_DRAW_MESH) { model.Draw(); } }It's a little bit weird to do so...