- Home /
Question by
primitiveType · May 04, 2016 at 04:40 PM ·
editorfocuseditor windowmaximize
How do I get Unity to ask Windows for focus?
I've noticed certain times where Unity is able to ask Windows for focus (like when a build is completed, the window will maximize if it was minimized, and it will gain focus when it does so). I have a project where there is a decent load time, and I'd like to be able to trigger this focus request when loading is complete so I don't have to keep checking on unity to see if it is done. Is this possible? I tried
EditorUtility.FocusProjectWindow();
but I think that is specifically to focus the project pane and doesn't request focus from Windows. To be clear, I am trying to get the Editor to gain focus to make development a little more smooth.
Comment