SetTerrainLayersRegisterUndo(TerrainLayer[], string)
This function sets the TerrainData.terrainLayers property, and in addition, registers the action to the Editor's undo stack.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public void SetTerrainLayersRegisterUndo(TerrainLayer[] terrainLayers, string undoName)
Parameters
The Terrain Layer assets to set.
The name of the Editor's undo action.
Remarks
This function is only available in the Editor.