Search Issue Tracker
Fixed in 2022.2.0b5
Fixed in 2022.2.X, 2023.1.X, 2023.1.0a1
Votes
0
Found in
2022.2.0a3
2023.1.0a1
Issue ID
UUM-2264
Regression
No
Undo does not work when GameObject is replaced with Prefab instance by holding Alt and dragging the Prefab
Reproduction steps:
1. Open the attached project ("AltDragBug.zip")
2. Open "SampleScene" Scene
3. While holding Alt (option on Mac), drag the Sphere Prefab from the Project window onto the Cube GameObject in the Hierarchy window
4. Observe the "SampleScene" Scene in the Hierarchy window
5. Save the project
6. Close and reopen the project
Expected result: The Scene is marked as dirty (step 4) and the changes are saved and remain after reopening and undo works
Actual result: The Scene is not marked as dirty and no changes are saved
Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.25f1, 2021.2.0b16, 2022.1.0a12
Workaround: Performing another action that marks the Scene as dirty, then saving the project will also save the GameObject replacement
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2023.1):
Fix that Undo does not work when GameObject is replaced with Prefab instance by holding Alt and dragging the Prefab, also the scene was not marked dirty. The modifier key has changed from Ctrl on Windows and Linux and Cmd on OSX.