diff --git a/editor/plugins/game_view_plugin.cpp b/editor/plugins/game_view_plugin.cpp index bc3b4ceeb2b..0d1f72fa9ac 100644 --- a/editor/plugins/game_view_plugin.cpp +++ b/editor/plugins/game_view_plugin.cpp @@ -337,6 +337,9 @@ void GameView::_stop_pressed() { void GameView::_embedding_completed() { _attach_script_debugger(); _update_ui(); + if (make_floating_on_play) { + get_window()->set_flag(Window::FLAG_ALWAYS_ON_TOP, bool(GLOBAL_GET("display/window/size/always_on_top"))); + } } void GameView::_embedding_failed() {