diff --git a/editor/run/game_view_plugin.cpp b/editor/run/game_view_plugin.cpp index 7638d644bd73c..12ba56afb6106 100644 --- a/editor/run/game_view_plugin.cpp +++ b/editor/run/game_view_plugin.cpp @@ -507,6 +507,10 @@ void GameView::_embedded_process_focused() { } void GameView::_editor_or_project_settings_changed() { + if (!is_inside_tree()) { + return; + } + // Update the window size and aspect ratio. _update_embed_window_size();