Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a10
Issue ID
1105417
Regression
Yes
Using range serialized field will not update the inspector correctly.
Steps to reproduce
- Open the attached project in 2018.3.0f1
- Select the cube object
- Open the script CubeMovement
- Change [Range(0f, 100f)] to [Range(10f, 100f)]
- Select the cube object again
Notice issue >> The knob for the range slider disappears. The value box is set to zero. It won't display correctly until you click on the slider.
Expected
The range value should update to 10 and the knob for the slider should appear.
Tested: 2018.2.1, 2018.3.0b8, 2018.3.0f1, 2019.1.0a10
Working: 2018.2.1
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (2019.1.X):
I'm looking at the bug, and I believe the behaviour is by design.
- Original range is between 0-100
- Users sets value to 0
- Range changes to 10-100
- 0 is now outside the range.
we do not show the knob when values are outside the range, and we do not change values without an explicit user interaction. The Range attribute is an UI attribute, not an enforcement, if an object needs to enforce a range, it should do that enforcement in their OnValidate callback.
In the version marked as working, the value is not updated either. However the slider knob is visible. this is because a validation check is missing in the painting of the slider
Resolving this case as by design