Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
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.
Resolution Note (2023.1.X):
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.