Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please limit one question/topic per post.
Please provide the following details depending on types of question

▼ For question regarding Editor, please provide:
- Live2D Software Version: (e.g. Cubism Editor 3.1.02, Euclid Editor 1.2.02)
- OS & Version: (e.g. Windows 10, macOS HighSierra)
- PC Model: (e.g. MacBookPro 2017)
- Graphics Specifications: (e.g. GeForce GTX 950M)
- Memory: (e.g. 8GB)
- Illustration Software used: (e.g. Photoshop, ClipStudio, SAI)
- Attach screenshot or capture video to show your problem:
▼ For question regarding SDK, please provide:
- For us to reproduce the issue you wish to inquire about, please provide either a minimum project file which has the issue. or specific instructions on how to reproduce the issue.
- Types and version of Cubism SDK you are using.
▼ For question regarding Cubism Software License,
For issues related to purchasing, your order, license key, and subscription, please contact us via contact form:

RenderMode.DrawMeshNow error

Hi there, it's me again! :)

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:
    private void OnRenderObject()
        if (live2DModel == null) { return; }
  • edited June 2016
    The code in LAppModelProxy looks like this:
    void OnRenderObject()
    	if(!isVisible) return;
            if(model.GetLive2DModelUnity().getRenderMode() == Live2D.L2D_RENDER_DRAW_MESH_NOW)
    	if (LAppDefine.DEBUG_DRAW_HIT_AREA)
    void Update()
    	if(!isVisible) return;
            if (model == null) return;
            if (model.GetLive2DModelUnity().getRenderMode() == Live2D.L2D_RENDER_DRAW_MESH)
  • Which is correct :# . So you should be on the safe side :D .
  • So I can ignore that exception?
    It's a little bit weird to do so... :D
Sign In or Register to comment.