Search Issue Tracker
By Design
Votes
0
Found in
6000.0.13f1
Issue ID
UUM-77265
Regression
Yes
Custom contextual menu is broken or displayed wrongly when it is created with GenericDropdownMenu UIElement
How to reproduce:
1. Open the “GenericDropdownMenu“ project
2. Press CTRL+Q to open the “Asset Quick Access” window
3. Right click on the “sample” Asset
4. Observe the results
Expected result: The contextual menu is functioning and appears as a small grey square box
Actual result: The contextual menu is not functioning or appearing as a black large box
Reproducible in: 2023.2.0a15, 6000.0.13f1
Not reproducible in: 2021.3.41f1, 2022.3.40f1, 2023.2.0a14
Reproduced on: Windows 10
Not reproduced on: No other environment tested
Notes:
- From version 2023.2.0a15 until version 2023.3.0a19 the contextual menu opens as the large black box with buttons
- From version 2023.2.0b1 until version 6000.0.0f1 the contextual menu opens as a black line without buttons and the “Layout update is struggling to process current layout (consider simplifying to avoid recursive layout): EditorPanelRootElement unity-panel-container (x:0.00, y:0.00, width:774.00, height:311.00) world rect: (x:0.00, y:0.00, width:774.00, height:311.00)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” error is thrown in the Console
- From version 6000.0.1f1 until version 6000.0.13f1 the contextual menu opens as the large black box with buttons4
Comments (1)
-
SolarianZ
Aug 11, 2024 06:16
Why Unity change the style of the GenericDropdownMenu to this new high contrast style? It's so ugly!
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
- Particle System Renderer icon is missing in Animation window > Add Property context menu
- [Android] Legacy, TMP and UI Toolkit Input Field language toggle to some non-latin alphabet languages does not work with external keyboard
- Crash on keywords::LocalKeywordState::operator when calling ShaderUtil.GetPasskeywords with ShaderType.RayTracing set as the third parameter
- Inconsistent “Remove property” behavior when removing child properties in Animator window
- Scene View Camera overlay preview goes out of Scene View bounds when the Scene View is resized vertically
Resolution Note:
We'll address the wrong dropdown styles in an upcoming minor version.
For the width, we introduced new API to help drive how it is calculated, you can use the new `fitContentWidthIfAnchored` parameter. The GenericDropdownMenu will need to be opened with both `anchored` and `fitContentWidthIfAnchored` to true, so that the width matches the largest item.
For more information, please refer to:
https://docs.unity3d.com/6000.0/Documentation/ScriptReference/UIElements.GenericDropdownMenu.DropDown.html