Search Issue Tracker
By Design
Votes
0
Found in
2022.2.0a3
Issue ID
UUM-63242
Regression
Yes
[UI Builder] VisualElement is created with a modified Grow value
Steps to reproduce:
1. Create a UI Document (Create>UI Toolkit>UI Document) and open it
2. Add a VisualElement
3. Select the VisualElement and expand the Flex tab in the UI Builder inspector
4. Observe that the Grow field is set to 1 and is displayed as modified
Note: Grow is displayed as a modified value and can be Unset. Added images show the comparison of default behavior before and after.
Actual results: Grow value is set to 1
Expected results: Grow value is not modified by default
Reproducible with versions: 2022.2.0a3, 2022.3.18f1, 2023.3.0b6, 2022.3.0f1
Not reproducible with versions: 2021.3.18f, 2022.1.0a1, 2022.2.0a2
Tested on (OS): MacOS, Windows 11 Arm, Windows 11
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
This is as designed. VisualElements are created with `flex-grow: 1` to make them easily selectable in the viewport. An option can be found in the Library tab of the builder, in the 3-dot menu, called "Default Visual Element Type". Select "No Styles" to have an empty element.