コガネブログ

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

【Unity】MissingReferenceException: The object of type 'HostView' has been destroyed but you are still trying to access it.

概要

f:id:baba_s:20220216163250p:plain

Unity 2022.1.0b7 の Game ビューを「Fullscreen」モードにして Unity を再生すると

MissingReferenceException: The object of type 'HostView' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEditor.EditorApplicationLayout.InitPlaymodeLayout () (at <9818991d79ec4437bcb28429e46862ef>:0)
UnityEditor.EditorApplicationLayout.SetPlaymodeLayout () (at <9818991d79ec4437bcb28429e46862ef>:0)

上記のエラーが発生して Game ビューのフルスクリーンモードが解除される現象に遭遇した
こちらは解決方法がわからなかったため、正式版になるまで待つ必要があるかもしれない