Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.3.2f1
Issue ID
778125
Regression
No
PolygonCollider2D is reshaped if sprite is dragged into the public field of the script
Steps to reproduce:
1. Open attached project "778125.zip"
2. Open scene "repro"
3. In hierarchy, select GameObject
4. Notice that it has two components: PolygonCollider2D and Test script with public field that accepts Sprite
5. Drag "sprite" from project tab to the Sprite field of the Test script
6. Notice that PolygonCollider2D is reshaped
Note: this doesn't happen if:
1. In inspector, Test component is higher than PolygonCollider2D component
2. Sprite isn't added by drag and drop but rather by using "Select Object" window
Workarounds:
1. Make sure that Test script is higher than PolygonCollider2D
2. Add sprite not by dragging it in but by using "Select Object" window
Reproduced with: 5.1.4f1, 5.2.4f1, 5.3.3p3, 5.4.0b9
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
Add comment