Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2020.2.0a3
Issue ID
1226923
Regression
No
[Improved prefab] Multiple component dependencies are added to a GameObject when undo is pressed after removing the dependency
Multiple component dependencies are added to a GameObject when undo is pressed after removing the dependency. Refer the attached video
Steps to reproduce:
1) Create a new project
2) Create Cube gameObject. Drag to project browser to make a prefab
3) In Hierarchy, Select Cube > Add Rigidbody
4) In Project browser, Select Cube > Add fixed joint
5) In Hierarchy, Select Cube > Revert added Rigidbody and apply removed Rigidbody component
6) Press Ctrl + Z or Edit > Undo
Actual result: Multiple rigidbody components are added to Cube gameObject
Expected result: Only one rigidbody component can be added to a GameObject
Occurring on: 2020.2.0a3
Environment: Both Windows and Mac
Note:
1) In 2/10 occurrences, Editor crashes when undo is pressed
2) Cannot verify the bug in previous Unity versions as Editor used to crash with above steps. Logged here https://fogbugz.unity3d.com/f/cases/876288/
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a12