Skip to content

Commit ecb48b3

Browse files
committed
add warning if we cant access game view window
1 parent ce5b98e commit ecb48b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ public static void LastSavedModel ()
184184
if (gameWindow) {
185185
gameWindow.maximized = true;
186186
UnityEditor.EditorApplication.isPlaying = true;
187+
} else {
188+
Debug.LogWarning ("Failed to access Game Window, please restart Unity to try again.");
187189
}
188190

189191
if (AutoUpdateEnabled ()) {

0 commit comments

Comments
 (0)