x


Close EditorWindow in Play Mode

I'm having issues where an Editor script behaves strangely when the user enters play mode. How can we close an EditorWindow when the user enters play mode? If possible, how can we open it up again when the user exits play mode?

more ▼

asked May 11 '12 at 04:25 PM

absameen gravatar image

absameen
444 50 78 88

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This is actually a very simple process. You can check EditorApplication.isPlaying in an update function. If the user enters Play Mode, open another temporary window and close the current window. You would do the same in the temporary window, in that when the user exits play mode, then open the previous window and close the current window.

more ▼

answered May 12 '12 at 11:26 AM

absameen gravatar image

absameen
444 50 78 88

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1728
x175
x34

asked: May 11 '12 at 04:25 PM

Seen: 472 times

Last Updated: May 12 '12 at 11:26 AM