Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.3.0a6
2019.1.0a1
2019.1.0f2
2019.2.0a1
Issue ID
1148404
Regression
No
Two incompatible components can be added to a GameObject when using the Prefab Mode
How to reproduce:
1. Open the attached project ("case_1148404")
2. In hierarchy choose the Cube Gameobject and add the Rigidbody2D component
3. Open the Cube in the Prefab Mode and add the Rigidbody component
4. Exit the Prefab Mode
5. Override the Cube by applying all changes
Expected results: Cube can't have two different Rigidbody components
Actual results: Cube has two different Rigidbody components
Reproduced with: 2018.3.14f1, 2019.1.0f2, 2019.2.0a13
Notes:
- One instance of the same component is removed in some cases (for example, when two same types of Rigidbody are added)
- Improved Prefabs were introduced in 2018.3.0a6
- In the 2018.3.0a6 version Unity crashes, when trying to reproduce the issue
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.0a16