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
- Building 3D Sample Scenes (URP) Project fails
- Alpha channel is disabled when Alpha Clip Threshold is set to 0
- The Physics 2D Profiler module does not display the information about processed physics in the scene when profiling the application as a Development Build
- A Script Component that has a serialized custom class is not detecting changes in the first boolean variable when entering the Play mode with the Script Components GameObject opened in the Inspector
- “SendMessage cannot be called during Awake“ warnings appear when loading a scene with “LoadSceneAsync“ if using UI Toolkit in the scene
Resolution Note:
Fixed in 2022.1.0a12
Resolution Note:
Fixed in 2021.2.0b16