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
- Post Processing SMAA breaks when HDR mode R11G11B10 is selected and Color Space is changed
- The "UnityWebRequest.result" of the "UnityWebRequestTexture.GetTexture" method changes when accessing "UnityWebRequest.downloadHandler" texture
- Slider rounding does not allow setting certain valid numbers as Values when Low and High Values not set to default
- UI Builder Canvas has too big resizing zone on the outside of the canvas
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
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.