Unity Issue Tracker - Numeric fields that are not available in the "Normal" Inspector mode can be set to negative values in the "Debug" mode
Closed
UUM-78789
Numeric fields that are not available in the "Normal" Inspector mode can be set to negative values in the "Debug" mode
Unity: Inspector Framework
As Designed
6.0.X
2022.3.X
2021.3.X
When the inspector is in debug mode, we are not running any validation on any the fields. This mode acts as a complete pass-through as one of its purposes would be to be able to debug faulty editor code and validation.
How to reproduce:
1. Create a new Unity project and a new scene in it
2. In the Hierarchy, select the "Main Camera" GameObject
3. Switch the Inspector mode to "Debug"
4. Navigate to the "Target Display" field
5. Try setting it to the negative number
Expected results: "Target Display" can't be set to a negative number
Actual results: "Target Display" can be set to a negative number
Reproducible on: Windows 11 Pro
Not reproducible on: No other environment tested
Note: Tested on the various Components, seems to be reproduced when the same field is not presented in the "Normal" mode or presented in a different way (e.g. Dropdown)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?