Search Issue Tracker
Active
Votes
1
Found in
6000.0.61f1
6000.2.10f1
6000.3.0b8
6000.4.0a3
Issue ID
UUM-124858
Regression
Yes
UI Toolkit rendered text breaks when toggling FontWeight styles through code
How to reproduce:
- Open the project “UTK-fontasset-fallback-bug.zip“
- Open the “FallbackFontBug“ Scene
- Enter Play Mode
- Press “Toggle Bold“ button in the Game view
- Observe the Console and the Game view
Expected result: Nothing is logged in the Console after step 4, text is rendered as before step 4
Actual result: Multiple warnings and errors are being spammed on each click, and the rendered text is broken
Reproducible in: 6000.0.54f1, 6000.0.61f1, 6000.2.10f1, 6000.3.0b8, 6000.4.0a3
Not reproducible in: 6000.0.53f1
Reproduced on: Windows 11 Pro (24H2), macOS 26.0.1 (By the reporter)
Not reproduced on: No other environment tested
Notes:
- The most prominent errors and warnings are:
** “ArgumentException: The state of the provided MeshGenerationNode is invalid (entry isn't empty).“
** “NullReferenceException: Object reference not set to an instance of an object”
* “MeshGenerationContext is assigned to a VisualElement after calling 'UnityEngine.UIElements.UIR.MeshGenerationCallback”
The Text in the Game view breaks
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
Add comment