Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JonathanBurroughs on September 18, 2014, 09:17:23 PM

Title: Expected top level layout group missing!
Post by: JonathanBurroughs on September 18, 2014, 09: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.
Title: Re: Expected top level layout group missing!
Post by: 600 on September 19, 2014, 04:28:22 AM
Maybe there are missing some End Area for layouts?
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 05:12:26 AM
What is a missing End Area, 600?
Title: Re: Expected top level layout group missing!
Post by: 600 on September 19, 2014, 05: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?
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 05: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?
Title: Re: Expected top level layout group missing!
Post by: 600 on September 19, 2014, 05: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?
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 06: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.
Title: Re: Expected top level layout group missing!
Post by: 600 on September 19, 2014, 06: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 :)
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 12:31:08 PM
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.
Title: Re: Expected top level layout group missing!
Post by: jess84 on September 19, 2014, 12:56:59 PM
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.
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 01:16:30 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.
Title: Re: Expected top level layout group missing!
Post by: PaulH on September 19, 2014, 03: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.
Title: Re: Expected top level layout group missing!
Post by: JonathanBurroughs on September 19, 2014, 03: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