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

TerrainCallbacks.HeightmapChangedCallback

切换到手册
public delegatevoid HeightmapChangedCallback (Terrain terrain, RectInt heightRegion, bool synched);

参数

terrain引用更改后的 TerrainData 资源的地形对象。
heightRegion发生更改的高度贴图区域(以样本表示)。
synched指示更改是否已完全同步回 CPU 内存。

描述

将此委托类型与 heightChange 结合使用来监视对地形高度贴图的所有更改。


Did you find this page useful? Please give it a rating: