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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
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.