x


BUG REPORT: Editor Docked windows do not change focus properly.

Hello community.

I've been working with EditorWindows, and i've ran into a very annoying problem that seems more like a visual bug on the Unity Editor.

How to recreate: 1- Create 2 editor windows 2- Add a textfield to each one of them, like this: "objName = EditorGUILayout.TextField ("Name", objName);" 3- Dock them in the same group. 4- Type something on a textfield 5- Change the tab, and watch the value propagate to the other window.

If you type enter before changing, or change without focus on the textbox, nothing wrong happens. But the weirdest part is that if you check the focusedwindow variable, it shows properly which windows has the focus, but you don't get "OnLostFocus" events, and does not lose focus if the docked window is not visible.

Any workarounds?

more ▼

asked Apr 23 '12 at 03:38 PM

rafaelkuffner gravatar image

rafaelkuffner
1 2 2

Use the bug reporter app to submit bug reports. Posting them here won't do any good.

Apr 23 '12 at 04:19 PM Eric5h5

Just did it. Maybe it's not a bug and i'm doing something wrong, so i figure i should ask here.

Apr 23 '12 at 05:30 PM rafaelkuffner
(comments are locked)
10|3000 characters needed characters left

0 answers: sort oldest
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:

x510
x170
x63
x8
x2

asked: Apr 23 '12 at 03:38 PM

Seen: 455 times

Last Updated: Apr 23 '12 at 05:30 PM