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:
https://www.live2d.com/en/contact/contact_form

Unity and Live2D SDK compatibility

I'm practicing making live2d viewer with Unity 5.6.6 and SDK 2.1
Are they compatible with each other?

Comments

  • edited July 2018
    Hi I already figured out that it is compatible so I will change my question a little

    I'm using create live2d canvas option like the tutorial but keep getting the error NullReferenceException: Object reference not set to an instance of an object
    at line 42 and 61

    these lines are:
    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();
    }
    }

    what can I do to fix this, everytime I tick the box LAppModelProxy script, this error keeps appearing and then the script got untick
  • Hi,

    This error seems to happen since the model has not been imported properly. It would better to check if relative path in model.json is correct.

    thanks,
Sign In or Register to comment.