Search Issue Tracker
By Design
By Design in 6000.0.X
Votes
0
Found in
2021.3.19f1
2022.2.8f1
2022.3.13f1
2023.1.0b6
2023.2.0a5
2023.3.0a3
6000.0.0b11
Issue ID
UUM-30385
Regression
No
[UIToolkit] Slider with InputField does not have the adjustable margins
Reproduction steps:
1. Open the attached “IN-32272.zip” project
2. Open Assets > SampleScene
3. Observe Game View
Expected result: The input field is visible
Actual result: The input field’s margin can’t be adjusted and hides the field’s value
Reproduced with: 2021.3.19f1, 2022.2.8f1, 2023.1.0b6, 2023.2.0a5
Could not test with: 2020.3.45f1 (can’t open UI Builder)
Reproducible on: Windows 10, macOS 13.2.1 (Intel)
Note:
- The issue can be reproduced in Editor, Player and UI Builder
Workaround :
Override the `.unity-base-text-field__input` padding in a stylesheet.
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
- Project Auditor suggests to update package to a lower version than installed when the recommended package version is not the latest version
- Low performance when multiple meshes using BlendShape are rendered on screen
- TMP Dropdown visually corrupts or disappears when its own GameObject is assigned to "Caption Image" or "Placeholder" elements
- Usymtool tries to upload GameAssembly.pdb when it doesn't exist after building with Mono backend
- “NullReferenceException” error thrown in the Console when running HDRP Wizard “Fix All” in URP project after installing HDRP Package
Resolution Note:
This problem is not specific to slider and will occur for any input field. The user has changed the field so its height is smaller (25) so the padding causes the text to be hidden.
When forcing an element to be smaller than designed style issues are likely to happen. Provide a custom style sheet to fix this and override the .unity-base-text-field__input class.
Resolution Note (6000.0.X):
This problem is not specific to slider and will occur for any input field. The user has changed the field so its height is smaller (25) so the padding causes the text to be hidden.
When forcing an element to be smaller than designed style issues are likely to happen. Provide a custom style sheet to fix this and override the .unity-base-text-field__input class.