- Home /
How to solve the problem of "You are pushing more GUIClips than you are popping"
I am getting the error message "GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)"
ScrollPosition = EditorGUILayout.BeginScrollView(ScrollPosition, false, false);
foreach (Object ob in ObjectArray)
{
//Draw GUI stuff
}
EditorGUILayout.EndScrollView();
I get no errors when i remove the info for the scroll bars.
Is there re another way to draw scroll bars once the content in the window overflows ?
if not then how do i get around this problem?
Answer by Owen-Reynolds · Jan 29, 2015 at 01:53 PM
Traditionally, this sort of error is when you have more Begins than Ends. There might be a return
which is cutting off an EndScrollView. Or it's hidden in some if-else logic, where a condition calls BeginScrollView, but then changes so the identical if for EndScrollView isn't firing.
I do have a try catch in my for loop . It is the return that is causing the error. great! thanks for the help.
Your answer
Follow this Question
Related Questions
Custom Timeline Playable - GUI Override 0 Answers
How to add a reorderable list on CUSTOM EDITOR WINDOW? 0 Answers
EditorGUILayout.TextField text get's deleted instantly. 2 Answers
Importing .png via script 1 Answer
Maskfield selected values 1 Answer