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

PaintContext.ScatterHoles

切换到手册
public void ScatterHoles (string editorUndoName);

参数

editorUndoName 用于撤销堆栈的唯一名称。

描述

通过将修改复制回源地形瓦片,应用已编辑的地形孔洞 PaintContext。

完成对 PaintContext 的编辑后,destinationRenderTexture 中的已修改数据必须应用于每个地形中存储的纹理。 ScatterHoles 将执行此复制。 此函数还将创建一个延迟操作来重新构建碰撞、物理、草、树和细节。

TerrainPaintUtility.EndPaintHoles 在内部调用此函数。

另请参阅:PaintContext.GatherHolesPaintContext.ApplyDelayedActions