Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X
Votes
0
Found in
2019.3.0b9
2019.4
2020.3
2021.1
2021.2
Issue ID
1337002
Regression
No
Read-only fields can be modified with the mouse dragger
Numeric fields such as IntegerField, FloatField and DoubleField support a "isReadOnly" property to prevent modification.
While this correctly prevents the user from modifying the value with the keyboard, she can use her mouse to modify the value (try to drag the table and see your cursor change).
Steps to reproduce:
1) Drag attached script inside a project
2) From the top menu, open "UI Toolkit > ReadOnlyField"
3) Drag any of the readonly field
Expected result: values are not modified
Actual result: values are modified
Occurs with 2019.4, 2020.3, 2021.1 (not verified by report on the forums), 2021.2.
Forum:
https://forum.unity.com/threads/numeric-readonly-field-can-be-modified-by-dragging-label.1110823/
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Readme” Asset is unreadable in the Inspector window when switching Editor Theme to Light
- “NullReferenceException” error thrown when switching Editor Theme to Light if “Unity Version Control” tab is enabled
- A Warning is displayed in the Inspector when a Mesh with any Material is added as a Terrain Detail
- [Android][Vulkan] Memory leak when playing and stopping a video using the Video Player on some devices
- Caret moves by a character when typing "." and any number into 'Grid and Snap' toolbar's input field
Add comment