Search Issue Tracker
Fixed in Fixed in 2022.2
Votes
0
Found in [Package]
1.0.0-preview.14
Issue ID
1344003
Regression
No
[UI Toolkit] Visual Element is rendered with 0 percent alpha value and sets its size to 0 height when changing alpha
Steps to reproduce:
1. Create new project
2. Window > Package Manager > + > Add package from git url: com.unity.ui.builder
3. Window > Package Manager > + > Add package from git url: com.unity.ui
4. Assets > Create > UI Toolkit > UI Document. Double NewUXMLTemplate to edit it in UI Builder
5. UI Builder > Library > Containers > Drag VisualElement onto Viewport
6. Observe that Inspector > Background Color > swatch is BLACK with 100% alpha.
7. Click on swatch, then set alpha to 90% - 100%
8. Observe that VisualElement has resized to height=0 in the Viewport
9. drag the horizontal line that represents the VisualElement in the Viewport downward to give it a height> 0
10. Observe that the VisualElement is now using the correct alpha
Expected results: Visual Element is rendered with 100 percent alpha value and has the correct size
Actual results: VIsual Element is rendered with 0 percent alpha value and sets its size to 0 height when changing alpha
Reproducible with: 2019.4.28f1(1.0.0-preview.14), 2020.3.14f1(1.0.0-preview.14), 2021.1.12f1(1.0.0-preview.14),
Unable to test with: 2021.2, 2022.1 due to package error when importing UI.builder and UI
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
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
Resolution Note (fix version Fixed in 2022.2):
Fixed: 1344003: [UI Toolkit] Visual Element is rendered with 0 percent alpha value and sets its size to 0 height when changing alpha.