Search Issue Tracker
Fixed
Votes
1
Found in [Package]
1.0.0-preview.16
Issue ID
1359661
Regression
No
[UI Toolkit] Text object doesn't render instantly after setting display property to flex at Runtime through C#
How to reproduce:
1. Open the attached "1359661" project
2. Open the "SampleScene" Scene and enter the Play mode
3. Press the "Set display: flex inline" button
4. Observe the grey area in the Game window
Expected result: "Text to Show/Hide" text appears instantly
Actual result: "Text to Show/Hide" text appears only after pressing the "Redraw UIDocument" button
Reproducible with: 1.0.0-preview.16 (2020.3.17f1, 2021.1.18f1), 2021.2.0b9, 2022.1.0a6
Couldn't test with: 2019.4.29f1 (UI Toolkit not supported)
Notes:
- In 2020.3.17f1 and 2021.1.18f1 versions, "Text to Show/Hide" text appears after moving the cursor to the right or to the bottom out of the grey area
- After downgrading to 2020.3.17f1 or 2021.1.18f1 install the UI Toolkit package and recreate the UIDocument object to reproduce
- Deleting the "position: relative" in the .box block in the test (bug).uss file fixes the issue
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
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Resolution Note:
Fixed in 2022.1.0a12
Resolution Note:
Fixed in 2021.2.0b16