mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Fix imgui windows flickering
This commit is contained in:
1 file changed
+5
-1
@@ -114,7 +114,11 @@ namespace Reactor.Extensions
|
||||
{
|
||||
if (Enabled)
|
||||
{
|
||||
Rect = Rect.ResetSize();
|
||||
if (Event.current.type == EventType.Layout)
|
||||
{
|
||||
Rect = Rect.ResetSize();
|
||||
}
|
||||
|
||||
Rect = GUILayout.Window(Id, Rect, Func, Title, new Il2CppReferenceArray<GUILayoutOption>(0));
|
||||
|
||||
if ((Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1)) && Rect.Contains(new Vector2(Input.mousePosition.x, Screen.height - Input.mousePosition.y)))
|
||||
|
||||
Reference in new issue
Block a user