I get the following error sometimes
I try to reproduce it through my game but it seems I don’t know exactly what causes it , as sometimes it happens and other time it doesn’t happen even though I do the same steps that made it happen
lol alot of “happen” words … . anyway
here is the main error label
ArgumentException : Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting
about the error description , it is too large so it will be ugly to paste it here , so I will paste it in a text file and attatch it in the post if anyway can figure out the problem from it
I think it is something about my GUI’s functions , as I have alot of windows
but I rechecked every window ID and each window have its own unique one
and no more than 1 GUI.BringWindowToFront function call at the same time
and thats all I have thought about to figure it out and still I get this error sometimes
Nope I don’t use any of these , I don’t even know what are those yet , I’m learning as I go
@ appels hmm… are you sure ? we need more ppl to confirm this then to send it to devs
by the way , I get all my windows and controls painted even though I get this message , so this message don’t affect my game or any GUI’s on it or thier functionality
will let you know if this happens after I build the game and it still not affect the game though I will not know if it happens and my game still works fine in the built
the slot is a string[ ] so no import , but yeah you gave me an idea now as it is still null may be , the array have a length but none of its members have a value yet , it gets the values from the game progress , I’ll check that
thanks
Nope eventhough I set the values of the string array I still get the error
I get it more now , it seems this error happens on the first call for the gui after launching the game and never repeat again later
Well I’ve set selectedGrid to -1 and I still getting the same error
well I got rid of this error by completely remove the GUILayout , I hate GUILayout and don’t know exactly how they work , reading the scripting reference and manual didn’t help much to figure it out completely so I used GUI and no errors at all
Edit** - I actually ending up working around mine since I was merly trying to extend the scrollbar as far as my skills needed to go. So I simply counted Enumerated Skills and multipled it by a line offset number.