Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.42f1
2021.3.16f1
2022.1.23f1
2022.2.0f1
2023.1.0a23
Issue ID
UUM-21716
Regression
No
UI Slider text values disappear when changed
How to reproduce:
1. Open the project "IN_22053"
2. Open "SampleScene" Scene in Scenes
3. Enter the Play Mode
4. In Game View press "Options" -> “Sound”
5. Move sliders to "<14>"
Expected result: text in the slider is visible
Actual result: text in slider disappears
Reproducible with: 2020.3.42f1, 2021.3.16f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a23
Reproducible on: Windows 10 Pro
Note: not only reproducible on value "<14>", but also on other random values.
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
The rendering is not working because the tags used <> are rendered to special tags in Rich Text. There are a couple of ways to disable this functionality.
From inspector
Select the Value of Handle in each Slider’s Text Object from Project Hierarchy. In this case, there are four for each Slider: Music_Hovered, SoundEffect_Hovered, Ambient_Hovered, and Menu_Hovered.
Scroll down from the TMP menu from Inspector. Click on the Extra Settings to expand more options. There is a toggle for Rich Text. It removes the rendering of special tags on the slider by clicking on it.
From Code
In the script SptionsMenuSoundUi.cs where the Slider Texts are defined, disable the right text option by manually adding.
MusicLevelSelected.richText = false; to the TextMeshProUGUI text of each SliderUI.
Another way to do it, in the text of TMP, is to add the <noparse>
Tags in between so that the text is not rendered as special text.