I have this script:
bool showingEquipment = false;
showingEquipment = EditorGUILayout.Foldout(showingEquipment, "Equipment");
if (showingEquipment)
{
EditorGUILayout.LabelField("Test");
}
It is showing the foldout in the editor, however it seems like I cannot change it from false to true and vice versa.
Any suggestions?