Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Error EndLayoutGroup: BeginLayoutGroup must be called first.

Discussion in 'Scripting' started by puddleglum, Jan 15, 2021.

  1. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    406
    alright so normaly i would ignore somthing like this but iv been getting it a lot and i dont know what it means

    EndLayoutGroup: BeginLayoutGroup must be called first.
    UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr, Boolean&)

    what does this mean?
     
    mikharaharvey likes this.
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,186
    Not sure what isn't clear. If you have an editor script that calls EndLayoutGroup there needs to be a matching BeginLayoutGroup call. I think this only applies to editor scripts as that's the only place I've used them.
     
    Last edited: Jan 15, 2021
  3. seejayjames

    seejayjames

    Joined:
    Jan 28, 2013
    Posts:
    687
    I've seen this numerous times, and can't figure out where they come from. Nothing seems to be broken, I ignore them. Honestly I think it's a bug, but I can't replicate it.
     
  4. puddleglum

    puddleglum

    Joined:
    May 11, 2020
    Posts:
    406
    ye that would make sense but i dont have an editor script lol. i basicly just loaded up a new project and got this error
     
  5. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,186
    Well, that is what it means. Unity does have some packages that get installed by default. So it could be in one of those packages. That's my first guess is to check the packages you have installed. But as noted, since it is an editor script it doesn't effect builds, just the particular editor script may not work correctly.
     
  6. jeroll3d

    jeroll3d

    Joined:
    Nov 6, 2010
    Posts:
    249
    Just more ONE bug, AS USUAL in Unity...