Experimental: this API is experimental and might be changed or removed in the future.

TerrainCallbacks.HeightmapChangedCallback

Switch to Manual
public delegatevoid HeightmapChangedCallback (Terrain terrain, RectInt heightRegion, bool synched);

Parameters

terrainThe Terrain object that references a changed TerrainData asset.
heightRegionThe heightmap region that changed, in samples.
synchedIndicates whether the changes were fully synchronized back to CPU memory.

Description

Use this delegate type with heightmapChanged to monitor all changes to the Terrain heightmap.