LoginSignup
1

More than 5 years have passed since last update.

Anima2DのSpriteMeshEditorを使おうとするとNullReferenceErrorが出る

Posted at

読む前に

この記事はUnity5.5.0f3にて起きている内容になります
バージョンアップ等で解決している場合コメントいただけると幸いです。

エラーが出る

Anima2D/Scripts/Editor/TextureEditorWindow.cs
Texture2D mShowBonesImage;
Texture2D showBonesImage {
    get {
        if(!mShowBonesImage)
        {
            mShowBonesImage = EditorGUIUtility.Load("Anima2D/showBonesIcon.png") as Texture2D;
            mShowBonesImage.hideFlags = HideFlags.DontSave; // ここでエラー
        }

        return mShowBonesImage;
    }
}

一時的な対策

"Anima2D/showBonesIcon.png""icons/_Popup.png"とかに変える

"icons/_Popup.png"はUnityが標準で用意しているアイコンの一つ

根本的な解決

Unityに対応してもらう。

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
1