現在、Cubism EditorはApple M1チップ搭載機種には対応しておりません。
詳細は 動作環境 をご参照ください。
また、Cubism SDKは現在公開中の製品全てにおいてApple M1チップ搭載機種及びmacOS 11.0 Big Surには対応しておりません。
Cubism 製品のマニュアル・チュートリアルはこちら
Cubism Editorマニュアル    Cubism Editorチュートリアル    Cubism SDKマニュアル    Cubism SDKチュートリアル

SDK's Shader not working in LWRP.

Hello, I am using SDK Cubism4.1 and Unity 2019.3.0 (I have this same problem on previous unity versions).
After importing LWRP in Unity, animations which using live2d not working only in build (pc & webgl), in editor is everythink fine. I debugged parameters , change of parameters working correctly but it does not translate into character movement.
Somone know reason or have any tips how resolve this problem?
こんにちは、私はSDK Cubism 4.1とUnity 2019.3.0を使用しています(私は以前のUnityバージョンでこれと同じ問題を抱えています)。

UnityでLWRPを輸入した後に、Live 2 Dを使用しているアニメーションは、ビルド(PC & WebGL)だけで働いていません。パラメータのデバッグ、パラメータの変更が正しく動作しますが、文字の動きに変換されません。



  • Hi @phields

    Cubism SDK for Unity has two Mesh and swaps them with OnRenderObject().
    But, when using LWRP(URP), OnRenderObject() is not called.
    Therefore, the displayed model does not move because the updated mesh is not swapped and passed to the renderer.

    If CubismModel.OnRenderObject() is changed to CubismModel.LateUpdate(), the Cubism model will be animated.
    In this case, since the other Cubism components also operate Parameter values from LateUpdate(), set CubismModel execution order last.

  • Thanks for reply @y_a_s_(Dev Staff)
    I think to put it to LateUpdate() is not a good ideal.
    I change my script to this:
    void OnEnable() {
    // Camera.onPostRender += OnRendered;
    RenderPipelineManager.endCameraRendering += OnRendered;
    void OnDisable() {
    // Camera.onPostRender -= OnRendered;
    RenderPipelineManager.endCameraRendering -= OnRendered;
    private void OnRendered(ScriptableRenderContext context, Camera camera) {
    OnRendered(camera); // OnRenderObject() from https://docs.unity3d.com/ScriptReference/GL.html

  • @y_a_s_%28Dev%20Staff%29
    And I saw you use UnityCG.cginc in SDK's Shader.
    Unity will stop support these built-in shaders in 2020, Do you have any plan to update these to support SRP?
  • Hi @phields

    There is no problem with your method.
    As mentioned above, you can call it from anywhere as long as you have finished updating with Cubism Components.

    As for SRP, we recognize that Unity's main RP will move to SRP in the future, but we are currently considered specific details.