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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
Resolution Note:
Fixed in 2022.1.0a12
Resolution Note:
Fixed in 2021.2.0b16