Search Issue Tracker

Active

Votes

0

Found in

5.1.3f1

2019.4

2020.3

2021.3

2022.1

2022.2

Issue ID

739676

Regression

No

Mesh isn't cleared from Memory when calling SkinnedMeshRenderer.BakeMesh() and destroying all GameObjects referencing that Mesh

Mesh

-

How to reproduce:
1. Open the attached project "meshRepro"
2. Open the scene "SampleScene" and enter Play mode (Assets/Scenes/SampleScene.unity)
3. Open the Profiler window and select the Memory Profiler module (Window > Analysis > Profiler)
4. In the Module details pane, inspect the value of "Meshes"
5. In the Hierarchy window, delete the GameObject "Tester"
6. In the Profiler Module details pane, inspect the value of "Meshes" again

Expected result: The value of "Meshes" decreases
Actual result: The value of "Meshes" stays the same

Reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.