playMaker

Author Topic: Expected top level layout group missing!  (Read 7060 times)

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Expected top level layout group missing!
« on: September 18, 2014, 06:17:23 PM »
Hey y'all,

I'm getting the following error appearing in my Console every frame:

Quote
Expected top level layout group missing! Too many GUILayout.EndScrollView/EndVertical/EndHorizontal?
UnityEditor.DockArea:OnGUI()

Any idea what might be causing this? My interpretation is that I'm drawing too many GUI elements, but I can't tell how this would be.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 591
    • View Profile
    • Car and Traffic Playmaker assets
Re: Expected top level layout group missing!
« Reply #1 on: September 19, 2014, 01:28:22 AM »
Maybe there are missing some End Area for layouts?

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #2 on: September 19, 2014, 02:12:26 AM »
What is a missing End Area, 600?

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 591
    • View Profile
    • Car and Traffic Playmaker assets
Re: Expected top level layout group missing!
« Reply #3 on: September 19, 2014, 02:24:32 AM »
When you build GUI Layout for exapmle:

Start Horizontal, then Start Vertical etc.
after that you need to add End Vertical etc.

Some times I forget or miss to add this, so maybe thats that error?

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #4 on: September 19, 2014, 02:35:29 AM »
Hmm. So far I've only been using GUI Button, GUI Label and Draw Texture. I hadn't set up any GUI Layouts. But maybe that is itself the problem?

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 591
    • View Profile
    • Car and Traffic Playmaker assets
Re: Expected top level layout group missing!
« Reply #5 on: September 19, 2014, 02:51:09 AM »
Error shown that problem is in GUILayout, if you are using simple GUI actions not GUILayout actions,
maybe there are GUILayout action by mistake in between regular GUI actions?

Your setup is without GUILayout?

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #6 on: September 19, 2014, 03:35:09 AM »
I haven't called any GUILayout actions as far as I can tell.

I do use a GUI Skin to define the appearance of my GUI elements though.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 591
    • View Profile
    • Car and Traffic Playmaker assets
Re: Expected top level layout group missing!
« Reply #7 on: September 19, 2014, 03:41:38 AM »
Hmmm weird.
Maybe there are added some or one GUILayout action be mistake in some state, you could check Actions browser GUILayout actions if theres a count how many times used and where to find if thats the case.

If not, then Im not sure why you have that error, maybe a PM Dev could help.

Good luck sorting this out :)

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #8 on: September 19, 2014, 09:31:08 AM »
Heh. Thanks! Rather than debug it I've spent the day porting the GUI to Daikon Forge. I can't say I'm regretting it. DF is infinitely more powerful than Unity's UI. I'm glad it forced me to make the switch.

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: Expected top level layout group missing!
« Reply #9 on: September 19, 2014, 09:56:59 AM »
Heh. Thanks! Rather than debug it I've spent the day porting the GUI to Daikon Forge. I can't say I'm regretting it. DF is infinitely more powerful than Unity's UI. I'm glad it forced me to make the switch.

DKForge is fine if you're targeting Windows/Mac, but if you're going to be targeting mobile I don't recommend DKForge at all. The performance was abysmal for me.
Having said that, they're working on DKForge v2 at the moment, which is being rewritten from scratch to be mobile friendly.

The unity 4.6 uGUI stuff was kinda promising. I did some tests earlier this week, and whilst it's buggy and some things just don't work properly at the moment, the ResolutionReference stuff worked great, and the performance was pretty great.  I reckon in a couple of months when things have been sorted, uGUI will pretty good.

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #10 on: September 19, 2014, 10:16:30 AM »
That's reassuring to know, jess84. And it's useful to know Daikon Forge is a performance-hog. We're only targeting PC and Mac for now, so fingers crossed we'll be okay.

PaulH

  • Playmaker Newbie
  • *
  • Posts: 44
    • View Profile
Re: Expected top level layout group missing!
« Reply #11 on: September 19, 2014, 12:27:54 PM »
That's reassuring to know, jess84. And it's useful to know Daikon Forge is a performance-hog. We're only targeting PC and Mac for now, so fingers crossed we'll be okay.

hi
as far as im aware daikon forge gui is no more! its been taken from the asset store already and i don't think dfgui 2 will ever be released.

Takuan thinks because of uGUI its over for all other gui devs, so hes called it a day, but is thinking about releasing the source.

my advice stay away from DFGUI i had nothing but nightmares with it, went over to NGUI still had nightmares but no where near as bad!

hope this helps.

JonathanBurroughs

  • Junior Playmaker
  • **
  • Posts: 73
  • Some kind of independent game developer
    • View Profile
    • @HiFiHair
Re: Expected top level layout group missing!
« Reply #12 on: September 19, 2014, 12:33:31 PM »
Heh. Too late. I've gone and ported all my UI over to it today. Daikon Forge was made open source a few weeks ago:

http://www.daikonforge.com/forums/threads/dfgui-open-source.2248/page-2#post-10816