Hi guys, I’m doing something for the editor and i need foldouts.
The way I’m doing this right now is this, since i saw it returns a bool:
myFold = EditorGUILayout.Foldout(false,"foldoutYay");
if(myFold)
{
//display some buttons for example
}
But it never gets true when the user clicks on it. Why? If I set the bool to “true” while generating it, it works. (but never turns false of course)
Thanks…