Reproduction steps:
1. Open the attached “IN-46047_TryingRetractingChangesAgain Repro.zip“ project
2. Open the “SampleScene” from the Scenes folder
3. Select the “GameObject” in the Hierarchy
4. Open the Timeline window
5. Select the “Attempt 2 Track” track
6. Go to the File menu and press Save or Save project
Expected result: The GameObjects referenced by ExposedReference stay the same after saving the Scene changes as they were before saving
Actual result: The GameObjects referenced by ExposedReference get shown as “None (Game Object)” after saving the Scene changes
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2
Reproduced on: Windows 11 Pro
Notes:
- [Workaround] After deselecting the “Attempt 2 Track” track in the Timeline window, the GameObjects referenced by ExposedReference get changed back to what they were before saving
- The Save project button in the File menu does not reproduce the issue in the 2021.3.29f1 version of Unity but the Save button still does
- The issue is also reproducible by modifying and saving any C# script in the project but the “Attempt 2 Track” track becomes deselected automatically after script recompilation is done (in this case, the workaround just happens automatically)