GUI.DragWindow() not working over other UI
Hi all,
I'm writing an editor script and have made a popup window:
void OnGUI()
{
szText = GUILayout.TextArea(szText, GUILayout.Height(100));
BeginWindows();
m_rConfirmWindow = GUI.Window(0, m_rConfirmWindow, DrawConfirmWindow, "Delete?");
EndWindows();
}
private void DrawConfirmWindow(int id)
{
GUI.DragWindow();
}
This works fine and I can drag the window until I put it over another UI element such as a TextArea. If I then click on the part where they overlap it selects the TextArea instead of dragging the window. Note that visually the window is rendered on top but the TextArea seems to steal all the mouse clicks.
Any idea how I can fix this?
Your answer
Follow this Question
Related Questions
How to make a SerializedProperty with a list of values? 1 Answer
[Physics.PhysX] cleaning the mesh failed 0 Answers
InvalidOperationException: Operation is not valid due to the current state of the object 0 Answers
Is there a way to customize the look of a overriden prefab variable? 0 Answers
CustomEditor on Inspector, Text too big to be fully rendered 0 Answers