Skip to content

Commit 5ce51c2

Browse files
committed
maximize scene window
1 parent e442828 commit 5ce51c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Assets/FbxExporters/Editor/ReviewLastSavedModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ private static Object LoadModel (string fbxFileName)
8080
if (unityMainAsset) {
8181
model = UnityEditor.PrefabUtility.InstantiatePrefab (unityMainAsset);
8282
}
83+
UnityEditor.Selection.objects = new Object[]{model};
8384

8485
return model;
8586
}
@@ -173,6 +174,11 @@ public static void LastSavedModel ()
173174
// make turntable the active scene
174175
UnityEngine.SceneManagement.SceneManager.SetActiveScene (scene);
175176

177+
// find Scene window
178+
var sceneWindow = UnityEditor.EditorWindow.GetWindow<UnityEditor.SceneView>(title:null, focus:true);
179+
//sceneWindow.maximized = true;
180+
sceneWindow.FrameSelected ();
181+
176182
if (AutoUpdateEnabled ()) {
177183
LoadLastSavedModel ();
178184

0 commit comments

Comments
 (0)