Search Issue Tracker
By Design
Votes
3
Found in
2020.3
2020.3.3f1
2021.1
2021.2
Issue ID
1341382
Regression
No
[Mesh] Only SubMesh bounds are updated when using Mesh.ApplyAndDisposeWritableMeshData
How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Enter the Play Mode
3. Inspect the Console Window
Expected result: Mesh Bounds 'Center' and 'Extents' are applied by Mesh.ApplyAndDisposeWritableMeshData and are not equal to zero
Actual result: Mesh Bounds 'Center' and 'Extents' are equal to zero
Reproducible with: 2020.3.10f1, 2021.1.11f1, 2021.2.0a20
Couldn't test with: 2018.4.36f1, 2019.4.28f1 (ApplyAndDisposeWritableMeshData function is not available)
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
- UI Builder can't set a background image to a sprite from a multi-sprite spritesheet in the Resources folder
- Light2D freeform does not render the internal part when rendered in certain shapes
- Using AddCopyPass causes an incorrect merging of passes.
- Negative Enum value is not pasted correctly when copying from another array
- Silent Crash when generating Lightmap UVs for a model with a large object scale
Resolution Note:
For the time being the mesh bounds have to be updated manually through mesh.RecalculateBounds(). I have updated the documentation to reflect this. Next to this I have created a work item to investigate the behavior in the future. The work item is tracked internally, therefore I will close this case as postponed and set it to reactive in 6 months from now.