Version: 2023.2
public static void UpdateTerrainDataUndo (TerrainData terrainData, string undoName);

参数

terrainData Terrain data object.
undoName 撤销操作的名称。

描述

Updates the undo stack with a terrain operation.

This method adds a new terrain operation to the undo stack, so the operation can be undone and revert the terrain's data to its previous state.