This warning whenever I create new script

Since I’ve started using assembly definitions every time I create new script or rename folder that contains script brings up this warning on console.

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Hi,

There’s something wrong with one of your GUI functions (i think it happened to me when i didnt close properly a while back)
if its not too much, you can paste your code and maybe we can find it?

Alternatively you can:

  • Click (or double click) on the Error, does it take you to the problematic line in the code?

  • Try to debug manually, comment out all your suspicious GUI functions and de comment 1 by 1?

  • Best thing would be to show your code, GUI.BeginGroup GUI.EndGroup() etc ’

No I’m not using anything that has to do with GUI.

weird, the exact same error appeared for me a while back and after a small investigation over the net i found out some issues with my GUI.EndGroup();

try to paste some code, looking up this error it might be caused by a few scenarios…

I’m not using anything with GUI. It’s happening ever since I started using assembly definitions

Could be a bug in Unity. If your project is not huge consider submitting a bug report.

I’ve been running into this exact error with every project since I started using Unity again a few months ago. All my projects have been the standard 2D setup (with the built-in pipeline), 2019 LTS. I’m getting it now with a prototype I started today, with no UI stuff (no UI Toolkit, no IMGUI, no UGUI) and just a fistful of standard objects as placeholders and a couple scripts.

The bug has been fixed as of version 2019.4.8

2 Likes