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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
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