Search Issue Tracker
Won't Fix
Votes
0
Found in
5.5.0f3
Issue ID
869176
Regression
No
[Undo] A GameObject appears twice in the hierarchy after undoing
Reproduction steps:
1. Open the attached project
2. Create an empty GameObject A
3. Add "UndoBugScript" to A
4. Create a GameObject B as a child of A
5. Add any component to A
6. Press CTRL+F5 to run code that makes B a root object without registering an undo operation.
7. Press CTRL+Z to undo the component addition from object A.
Expected behavior: B should remain a root object.
Actual behavior: a new B object is created as a child of object A, a second B object still remains in the hierarchy, selecting either of them highlights both
Reproducible on: 5.3.7p1, 5.4.4f1, 5.5.0p3, 5.6.0b3
Tested on windows 10;
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
- UI Builder can't set a background image to a sprite from a multi-sprite spritesheet in the Resources folder
- Light2D freeform does not render the internal part when rendered in certain shapes
- Using AddCopyPass causes an incorrect merging of passes.
- Negative Enum value is not pasted correctly when copying from another array
- Silent Crash when generating Lightmap UVs for a model with a large object scale
Resolution Note:
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.