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
- NavMesh Surface is baked too high above the ground, making the NavMesh Agents hover above the ground when the HeightMesh is not built
- [Android] Crash on ProcessDynamicBatchGeometryJob with OpenGL or on DrawSharedGeometryJobs with Vulkan
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
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.