Search Issue Tracker
By Design
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
- The search field has an additional icon that has no functionality
- Splash Image logo is shown after being removed when pressing the Preview button
- Crash on GenerateParticleGeometry when creating certain particles
- HD Sample Buffer returns black for Rendering Layer Mask when Custom Pass Volume is not active
- SpriteRenderer has wrong input color when associated material uses SRPBatcher
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.