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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
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