Hi, I use Unity 4.5 on a mac
I created my own character and just create simple motion for testing and learning purposes.
I have added the "bytes" extension to moc, json and mtn files
I use the Live2D_Canvas from SDK, copied all the files and maintaining the structure.
and after I set my json to the script and run it, it says :
NullReferenceException: Object reference not set to an instance of an object
LAppModel.loadModelData (System.String modelFile, System.String[] texFiles) (at Assets/Scripts/sample/LAppModel.cs:193)
Which was :
193. live2DModel = Live2DModelUnity.loadModel(modelMoc.bytes);
I'm not sure what I did wrong, but
if I switch it to "shizuku's" json file (copied and run from my own Unity project),
it worked fine. So I decided to open both Json file using Text Edit and saw a difference on the top of the file.
Mine has different path (no path at all), and also it says "type : Live2D model setting", while Shizuku does not have that.
tried re-doing, re-export, ,re-trace all the steps, but none worked, I must have overlooked or missed something.
Can anyone help?
Comments
http://sites.cybernoids.jp/cubism2/sdk_tutorial/platform-setting/unity/csharp/createproject <--- I google translate it
and still the model did not come out, I don't understand where I did wrong, is it the moc file? I just click export moc (at the beginning it is set SDK 2.0 under file so export also SDK 2.0)
Live2D model File (moc, json) that your made was Do you can view the Live2D Viewer?
Please show me the contents of possible moc or json file.
I cannot use the Live2D viewer on the mac, I can't download it either, I don't know why, after I download, the Adobe Air Installer says installation file is corrupt, I redownload again and again still the same.
Sourcecode modified as follows.
This source and has been copied from the latest SDK.
Is it better to download the latest SDK.
I will tell to modify the document to Live2D Inc.
Shizuku = OK
My Character = not OK T_______T
I will attach complete file with texture, in case you want to try?
http://sites.cybernoids.jp/cubism2/sdk_tutorial/platform-setting/unity/csharp/sampleapp1
I was able to display the following in the latest SDK.
I think that the body to disappear can be solved by typing the key parameter of Body X in Modeler.
Please to be solved even latest SDK also heard.
http://www.live2d.com/en/download I will download and try from there
thank you, I will let you know !!!
Live2D SDK License Agreement on Is good is better to delete the download page URL.
thank you again for the help
you said "I think that the body to disappear can be solved by typing the key parameter of Body X in Modeler."
I don't understand what you mean (fix is on Cubism Modeller 2.0??)
now I have problem, hair is not moving when I click, only the face moves
I need physics?
How can I get the live2D viewer for Mac? I don't have windows
the download is error attached
http://sites.cybernoids.jp/cubism_e/tools/live2d-viewer
I download from the link you gave me :
http://sites.cybernoids.jp/cubism_e/tools/live2d-viewer its now working thank you!!
very confusing with so many links
thank you again Tod and naotaro!!!!