x


Is there a way to disable Maximize on an EditorWindow?

I have a main EditorWindow that can open other EditorWindows as tool windows. The main EditorWindow closes the tool windows in OnDestroy. So far so good.

The problem is OnDestroy is called on tabbed windows when another window in the tab group is maximized. So if the main window is in a tab group with a tool window, and you maximize the tool window (by hitting space, or selecting maximize in the tab menu), then the main window tries to close the tool window that is maximizing, and it crashes Unity!

I'm checking for null window references, but I think everything happening at once causes the crash...

So, my question is this: Is there a way to disable Maximize on an EditorWindow? Or is anyone aware of some clever workaround for this problem? I've tried maxSize to no avail.

more ▼

asked Jun 03 '11 at 04:40 AM

Alex Chouls gravatar image

Alex Chouls
428 11 16 25

Thought I'd add that the crash bug when destroying tabbed windows has been fixed...

Dec 26 '11 at 03:33 AM Alex Chouls
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x175
x18
x1

asked: Jun 03 '11 at 04:40 AM

Seen: 765 times

Last Updated: Dec 26 '11 at 03:33 AM