diff --git a/Code/Editor/EditorViewportWidget.cpp b/Code/Editor/EditorViewportWidget.cpp
index 1b461e1356..a93225230b 100644
--- a/Code/Editor/EditorViewportWidget.cpp
+++ b/Code/Editor/EditorViewportWidget.cpp
@@ -2970,7 +2970,12 @@ void EditorViewportWidget::RestoreViewportAfterGameMode()
{
Matrix34 preGameModeViewTM = m_preGameModeViewTM;
- QString text = QString("You are exiting Game Mode. Would you like to restore the camera in the viewport to where it was before you entered Game Mode?
This option can always be changed in the General Preferences tab of the Editor Settings, by toggling the \"%1\" option.
").arg(EditorPreferencesGeneralRestoreViewportCameraSettingName);
+ QString text =
+ QString(
+ "When leaving \" Game Mode \" the engine will automatically restore your camera position to the default position before you "
+ "had entered Game mode.
If you dislike this setting you can always change this anytime in the global "
+ "preferences.
")
+ .arg(EditorPreferencesGeneralRestoreViewportCameraSettingName);
QString restoreOnExitGameModePopupDisabledRegKey("Editor/AutoHide/ViewportCameraRestoreOnExitGameMode");
// Read the popup disabled registry value
@@ -2978,13 +2983,14 @@ void EditorViewportWidget::RestoreViewportAfterGameMode()
QVariant restoreOnExitGameModePopupDisabledRegValue = settings.value(restoreOnExitGameModePopupDisabledRegKey);
// Has the user previously disabled being asked about restoring the camera on exiting game mode?
- if (restoreOnExitGameModePopupDisabledRegValue.isNull())
+ //if (restoreOnExitGameModePopupDisabledRegValue.isNull())
{
// No, ask them now
QMessageBox messageBox(QMessageBox::Question, "O3DE", text, QMessageBox::StandardButtons(QMessageBox::No | QMessageBox::Yes), this);
messageBox.setDefaultButton(QMessageBox::Yes);
QCheckBox* checkBox = new QCheckBox(QStringLiteral("Do not show this message again"));
+ checkBox->setChecked(true);
messageBox.setCheckBox(checkBox);
// Unconstrain the system cursor and make it visible before we show the dialog box, otherwise the user can't see the cursor.
diff --git a/Code/Editor/RenderViewport.cpp b/Code/Editor/RenderViewport.cpp
index 8d6bcf021b..6bb221f7dd 100644
--- a/Code/Editor/RenderViewport.cpp
+++ b/Code/Editor/RenderViewport.cpp
@@ -4083,7 +4083,12 @@ void CRenderViewport::RestoreViewportAfterGameMode()
{
Matrix34 preGameModeViewTM = m_preGameModeViewTM;
- QString text = QString("You are exiting Game Mode. Would you like to restore the camera in the viewport to where it was before you entered Game Mode?
This option can always be changed in the General Preferences tab of the Editor Settings, by toggling the \"%1\" option.
").arg(EditorPreferencesGeneralRestoreViewportCameraSettingName);
+ QString text =
+ QString(
+ "When leaving \" Game Mode \" the engine will automatically restore your camera position to the default position before you "
+ "had entered Game mode.
If you dislike this setting you can always change this anytime in the global "
+ "preferences.
")
+ .arg(EditorPreferencesGeneralRestoreViewportCameraSettingName);
QString restoreOnExitGameModePopupDisabledRegKey("Editor/AutoHide/ViewportCameraRestoreOnExitGameMode");
// Read the popup disabled registry value
@@ -4098,6 +4103,7 @@ void CRenderViewport::RestoreViewportAfterGameMode()
messageBox.setDefaultButton(QMessageBox::Yes);
QCheckBox* checkBox = new QCheckBox(QStringLiteral("Do not show this message again"));
+ checkBox->setChecked(true);
messageBox.setCheckBox(checkBox);
// Unconstrain the system cursor and make it visible before we show the dialog box, otherwise the user can't see the cursor.