Search Issue Tracker
By Design
Unknown (hidden) 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X, 2022.2.X
Votes
0
Found in
2019.4.36f1
2020.3.31f1
2021.2.14f1
2022.1.0b11
2022.2.0a7
2022.2.0a14
Issue ID
UUM-3431
Regression
No
"EndLayoutGroup: BeginLayoutGroup must be called first." error is thrown when using AssetDatabase.ExportPackage in EditorWindow
How to reproduce:
1. Open the user's attached "ExportPackage" project
2. Open the "Package Exporter -> Exporter Window" window from the menu
3. Select the "Export package" button
Expected result: The "Exporting package" window is invoked
Actual result: "EndLayoutGroup: BeginLayoutGroup must be called first." error is thrown in the Console log
Reproducible with: 2019.4.36f1, 2020.3.31f1, 2021.2.14f1, 2022.1.0b11, 2022.2.0a7, 2022.2.0a14
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
This problem occurs because of how IMGUI is designed. It doesn't support re-entrancy, meaning that you can't open a modal IMGUI during another window's OnGUI().
There is a very easy workaround though which consists in adding a call to GUIUtility.ExitGUI() right after the call that triggers re-entrancy (so in this case right after the call to AssetDatabase.ExportPackage().
https://docs.unity3d.com/ScriptReference/GUIUtility.ExitGUI.html
Resolution Note (2019.4.X):
2019.4 LTS has reached end-of-life. This port is cancelled.