Adding a model to the sample project

[Last update: 10/06/2022]

Cubism SDK for Java is currently in alpha version, and the specifications may change in the beta or official version.

This page describes how to add a Live2D Cubism model to the Live2D Cubism SDK for Java (alpha version) This page describes the steps to add a Live2D Cubism model to the Live2D Cubism SDK for Java sample.
The sample should be built in advance by referring to "Android Sample Running Instructions in advance.
In this tutorial, we will add the sample model “Miara” to the sample project.

Please refer to the "Adding a Model to a Sample Project" page of SDK for Native for the flow from downloading a model to processing it and incorporating it into a program.

 

Program-side changes

Add the folder for the model that has been configured to the resources folder.
Add to [root]/Sample/src/main/assets folder.

 

Add MIARA to the ModelDir enumeration in LAppDefine.java. If the index of the first argument is not correctly sequentially numbered, it will not work properly.
Also, enter the folder name of the model in the second argument.

© 2010 - 2022 Live2D Inc.