Steps to reproduce:
1. Open the project “Unity 2022.1.19f1 - Custom editor button changing vector list on prefab instance lets 0 revert on Play Exit”
2. Open the “SampleScene” Scene
3. Select “ListOfPoints” GameObject in the Hierarchy
4. Click the “Reset all values to zero” button in the Inspector
5. Enter Play mode
6. Observe the Inspector
Expected result: The values remain 0
Actual result: Some values changed back to 99 (The changed values are the ones that are 0 in the original Prefab)
Reproducible with: 2020.3.40f1, 2021.3.13f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a18
Reproduced on: macOS Monterey 12.5.1 (Intel)
Notes:
- Git also does not track the values reset
- Not reproducible with “ListOfPoints (1)” GameObject because it is a non-prefab instance