Reproduction steps:
1. Open the attached “BugSerializedCopy.zip” project
2. Select the “Assets/A.asset” ScriptableObject from the Project window
3. Observe UINT and ULONG values in the Inspector window
2. Open the custom DemoWindow from the Menu bar (Demo > Window)
3. Observe the UINT and ULONG values in the custom DemoWindow
Expected result: Inspector shouldn’t accept negative values for UINT and ULONG and in the DemoWindow the values should correspond to the ones set in the Inspector
Actual result: UINT and ULONG shows extremely high values that aren’t equal to the ones set in the Inspector
Reproducible with: 2022.2.16f1, 2023.1.0b12, 2023.2.0a11
Couldn’t test with: 2020.3.47f1, 2021.3.23f1 (Script errors)
Reproducible on: Windows 10 Pro (22H2)
Note:
1. Inputting negative values from the Inspector into the uint and ulong fields shouldn’t be possible in the first place
2. Same/similar (incorrect) behavior is seen through the JSON property reported as well
3. Testing 2020.3 and 2021.3 streams was unsuccessful due to the errors in the user’s script, however, the behavior should be the same, thus the issue should be present in 2020.3 and 2021.3 streams as well