10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Unity】Live2DモデルをAnimationウィンドウで編集したいとき

Posted at

確認した実行環境

  • Unity
    • 2017.4.3f1
    • 2018.1.6f1
  • Cubism SDK for Unity
    • Cubism 3 SDK for Unity R8

起きた問題

Live2DモデルをAnimationウィンドウでプレビューしようとした際、CubismModelコンポーネントの処理が干渉して編集やプレビューが出来ない問題が発生しました。

gif1.gif

解決方法

CubismModel.csの下記の処理をエディタ停止中は処理しないように修正します。

Before
// Sync parameters back.
TaskableModel.TryReadParameters(Parameters);
After
#if !UNITY_EDITOR
            // Sync parameters back.
            TaskableModel.TryReadParameters(Parameters);
#else
            if (Application.isPlaying)
            {
                // Sync parameters back.
                TaskableModel.TryReadParameters(Parameters);
            }
#endif

gif2.gif

10
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?