How to reproduce:
1. Open the user attached project “PrefabIssueReproProject.zip”
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Select the “MainObject” GameObject in the Hierarchy
4. Select the context menu of “MainScript” in the Inspector
5. Press "Add item"
6. Select the “Main Script” Component's context menu
7. Select “Modified Component” and press "Apply to prefab 'MainObject'"
Expected result: The prefab changes are saved
Actual result: Changes are reverted and "Destination property underlying types does not match the given one" error is thrown in the Console
Reproducible with: 2020.3.43f1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a24
Reproduced on: macOS 13.0.1 (Intel)
Notes:
- When selecting "Add item" in prefab isolation mode, the list changes, but the prefab changes are not registered
- Unable to reproduced when removing the “HideInInspector” attribute