Live2Dに関するユーザーのみなさま同士の交流・ご質問・不具合の報告・提案・要望などについて是非お寄せください。
※Live2D公式スタッフからの発言や回答については確約できないことを予めご了承ください。
Cubism 製品のマニュアル・チュートリアルはこちら
 
Cubism Editorマニュアル    Cubism Editorチュートリアル    Cubism SDKマニュアル    Cubism SDKチュートリアル

Model has black edges when loading via script



I refered to the following script
http://docs.live2d.com/cubism-sdk-tutorials/initializemodel/

but when I drag the model prefab to scene, it shows correctly.
How to solve this issue? Thanks

コメント

  • Hi,

    Depending on the condition of calculation of alpha blend of texture set by Unity, this trouble happens. I'd like you to click "Apply" button with "Alpha Is Transparency" checked in Inspector window after selecting texture.

    Thanks,

  • Hi,

    Depending on the condition of calculation of alpha blend of texture set by Unity, this trouble happens. I'd like you to click "Apply" button with "Alpha Is Transparency" checked in Inspector window after selecting texture.

    Thanks,


    Thank you for your answer, but I want to load image with Texture.LoadImage() function, and I tried to set texture.alphaIsTransparency to true but not work. Is there any way to approach to it? Thanks.
  • Hi, I have the same problem described in this thread.
    What I found is that the BuiltinLoadAssetAtPath function actually is creating a new Texture2D instead of using the texture already imported to the project.
    I changed the code when the assetType is Texture2D to using Resources.Load and put the imported texture under a Resources folder. I wonder if this solution may cause any problems. While, even using texture.LoadImage, you need to make sure the texture is within build so putting the texture under a Resources folder seems necessary.
    Another way I can think is directly load the prefab instead of using the ToModel() things.
    Can you explain the pros and cons of directly loading the prefab and using the ToModel() things (as described in the SDK manual)
    Thank you.
コメントするにはサインインまたは登録して下さい。