- Home /
getting control 0's position in a group with only 0 controls when doing repaint
Hi everyone, I'm having that issue in some gui layoutwindow. I tried to clear what's inside the guiwindow to only draw a GUILayout.box inside, nothing changes. The Event.current.type issue doesn't solve anything.
this is what's behind the window generator class:
here is the windowFullContent functionif(this.m_layoutWindow){
this.m_guiRect = GUILayout.Window(this.getId(), this.m_guiRect, this.windowFullContent, this.getTitle(), style);
}
else{
this.m_guiRect = GUI.Window(this.getId(), this.m_guiRect, this.windowFullContent, this.getTitle(), style);
}
private void windowFullContent(int windowId)
{
if(this.m_menuActivated) { this.windowContent();
Rect titleRect = this.m_guiRect;
titleRect.height = this.getTitleHeight();
titleRect.x = 0;
titleRect.y = 0;
if(this.m_dragable)
{
GUI.DragWindow();
}
}
}
and the only code behind the windowContent function of my problem menu is
GUILayout.Box("")
whatever I put inside this functions causes the same issue
I'm having the same issue in every guilayout window, but never in the normal windows I use
The abstract class that generates the windows inherits another abstract class that generates the gui menus.
Can anyone explain me what happens and how to fix this? I would be gratefull if someone does.
Thans in advance