Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void Update(){
  2. if (EditorApplication.isPlaying)
  3. {
  4. FocusWindowIfItsOpen(Type.GetType("UnityEditor.GameView"));
  5. }
  6. }
  7.  
  8. EditorApplication.ExecuteMenuItem("Window/General/Game");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement