Search Issue Tracker
Fixed in 5.1.4
Votes
0
Found in [Package]
2.0.0-preview.4
Issue ID
1284920
Regression
Yes
Polygon Collider 2D generates a Collider near a single vertex when a GameObject has a Sprite Shape Controller and 3 vertices
How to reproduce:
1. Open the user's attached "SpriteShapeCollisionBug" project
2. Open the "SampleScene" Scene
3. In Hierarchy select the "New SpriteShapeController (1)" GameObject
4. In the Inspector enable the Collider editor in the Polygon Collider 2D Component
Expected results: The Collider is the same shape as the GameObject
Actual results: The Collider is at the bottom left corner of the GameObject and is very small
Reproducible with: 2.0.0-preview.4 (2019.3.0a11), 3.0.14 (2019.4.13f1), 4.1.4 (2020.1.10f1), 5.0.2 (2020.2.0b8, 2021.1.0a3)
Not reproducible with: 1.0.14-preview.2 (2018.4.28f1, 2019.3.0a11)
Notes:
- Only happens if Sprite Shape Controller uses a Profile which is using a Sprite with Pixels Per Unit set to 7 or higher
- Moving any vertex to the opposite side will fix the issue and the Collider will be generated properly
- The issue is reversed in 2D Sprite Shape 4.1.0 and newer compared to 2D Sprite Shape 4.0.3 and older. If a Collider is generated correctly in 2D Sprite Shape 4.0.3 the same GameObject will have incorrectly generated Collider in 4.1.0 and newer (moving the vertex to the opposite side to fix the Collider in one version will break it in the other)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment