Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2019.1.X, 2019.2.X
Votes
0
Found in
2019.1.0a11
2019.1.5f1
2019.2.0a1
2019.3.0a1
Issue ID
1162315
Regression
No
PolygonCollider2D.SetPath list version produces incorrect number of points, always rounding up to the nearest power of 2
How to reproduce:
1. Open the attached "SetPathList.zip" project
2. Enter Play mode and inspect the console
Expected results: SetPath creates the same amount of points when you use the array version and the list version
Actual results: The list version of SetPath rounds up the number of points to the nearest power of 2
Reproducible with: 2019.1.8f1, 2019.2.0b8, 2019.3.0a8
Note: Couldn't test with versions before 2019.1.0a11 because the list version of SetPath was not implemented yet
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (fix version 2019.3):
We incorrectly used the capacity of the provide "List<Vector2>" internally and not the size of the contents.
Fixed in: 2019.1.12f1, 2019.2.0f1, 2019.3.0a9