Unity Issue Tracker - Garbage is generated by the AutoConnect method when deleting a Terrain with the "Auto Connect" setting disabled
Closed
UUM-1948
Garbage is generated by the AutoConnect method when deleting a Terrain with the "Auto Connect" setting disabled
Unity: Terrain
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2021.2.X
2020.3.X
2019.4.X
2019.4 LTS has reached end-of-life. This port is cancelled.
Reproduction steps:
1. Open the user's attached "AutoConnectBug.zip" project
2. Open the "AutoConnect_Unecessary_Garbage_Generation" Scene
3. Enter the Play mode
4. Open the Profiler window and enable the Deep Profile setting
5. Press the "Remove Terrain" button in the Scene view and stop the Play mode
6. Observe the Profiler window
Expected result: Memory is not allocated to TerrainUtility.AutoConnect()
Actual result: Memory is allocated to TerrainUtility.AutoConnect()