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
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
- High "Total" value of the "TerrainManager.CullAllTerrains" when generating terrain
- UI Layout rebuild triggered by a rounding error when using TextMesh Pro
- Sprite Shape Corners and Edges are invisible when a closed Sprite Shape is used
- Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos
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.