コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】The editor layout could not be fully loaded, this can happen when the layout contains EditorWindows not available in this project

概要

The editor layout could not be fully loaded, 
this can happen when the layout contains EditorWindows not available 
in this project
  • 自作の EditorWindow を表示した状態で Unity を再起動したところ
    上記のログが Console に出力されており、
    自作の EditorWindow が消えている(復元されていない)状態に遭遇した
  • 自作の EditorWindow のクラス名とファイル名が一致していないことが原因だった
  • クラス名とファイル名を一致させたところ、Unity 再起動時に
    自作の EditorWindow が正常に復元されるようになった