기술 자료

Unity Engine

Unity Engine

SetTerrainLayersRegisterUndo(TerrainLayer[], string)

This function sets the TerrainData.terrainLayers property, and in addition, registers the action to the Editor's undo stack.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public void SetTerrainLayersRegisterUndo(TerrainLayer[] terrainLayers, string undoName)

Parameters

terrainLayers

The Terrain Layer assets to set.

undoName

The name of the Editor's undo action.

Remarks

This function is only available in the Editor.