Search Issue Tracker
Active
Votes
2
Found in
2021.2
2022.1
2022.1.0b1
2022.2
Issue ID
1387459
Regression
No
[UI Toolkit] Special characters \n, \t and \r are encoded in the UI
Reproduction steps:
1. Create a new Unity project
2. Create a new UI Document (Right-click Assets > Create > UI Toolkit > UI Document)
3. Open the UI Document and add a Label
4. In the Text field type in "\test"
Expected result: "\test" is displayed
Actual result: " est" is displayed
Reproducible with: 2021.2.13f1, 2022.1.0b9, 2022.2.0a7
Could not test with: 2019.4.35f1 (Package not supported), 1.0.0-preview.18 (2020.3.30f1, Can not open .uxml file)
Note: Both \t and tab (when pressing the Tab key) are displayed the same in the UI, but are treated differently in code, which makes it harder to work with
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
DrabanL
Aug 06, 2022 10:02
This is really important, it should be treated with higher priority.
Also this does not sound too complex to solve....