Did something change with EditorGUILayout.Foldout?

None of my foldouts will open up (you click on the arrow and no drop down occurs) in 2019.3.0f3 but they all work just fine in 2019.2.17. Did something change with the way foldouts work in the editor that I missed in the update notes? It has something to do with “= EditorGUILayout.Foldout(, "__”); never changing in value when the dropdown arrow is clicked. Using a static fyi in case that matters: public static bool m_PresetFoldout;

Once I change that to true the foldout appears, but again the toggle arrow doesn’t work at all and it will never toggle to false. Same script works as expected without problems on 2019.2.17, so was wondering if this was a bug or a deliberate change somewhere and if any other users are experiencing any issues with foldouts. Thanks!

I encountered the same problem.

Thanks for the update, glad to hear I’m not the only one!

Bump just to see any updates

I recommend reporting a bug and replying here with the case number for tracking purposes.

@richardkettlewell Thank you for the advice! This has been resolved by Metron - solution: click the foldout name (to the right of the toggle arrow)

1 Like

Have you tried clicking on the foldout name?

1 Like

Edit: To clarify, Metron meant the actual foldout name as opposed to the toggle arrow, and this does indeed reveal the foldout.
Thanks @Metron !

2 Likes

Set the toggleOnLabelClick parameter to true, that fixes it.

1 Like

Bumping this because its breaking third party assets that don’t have anything to the right of the foldout.

Also, Orlando’s suggestion is how I fixed it wherever its an issue.

Could you please submit a bug report for the issue?

They did already :slight_smile: https://issuetracker.unity3d.com/issues/unable-to-unfold-editorguilayout-dot-foldout-when-clicking-on-foldout-arrow

2 Likes

Unity Issue Tracker - Foldouts cannot be expanded by clicking the arrow is the non-duplicate issue for this.

This is happening again in 2020.3