I need to dynamically turn some of my terrains on and off. Despite the fact that I put each terrain in a separate Grouping ID and disabled Auto Connect in the inspector, each time a terrain is enabled or disabled, the TerrainUtility.AutoConnect() function is called and a 5.3kb memory is allocated. I don’t want memory allocations. How to completely disable TerrainUtility.AutoConnect()?
Hey! You might be able to try setting Terrain.autoConnect or Terrain.terrainData.autoConnect to false. I’ll have to look at the API again. I will also look into the GC allocations
2 Likes