Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ALandscape
Description
Creates a new edit layer @Param InName is the name of the new edit layer @Param InEditLayerClass is the class of the edit layer to create. Passing null will create a standard layer of type ULandscapeEditLayer @Param bInIgnoreLayerCountLimit create the layer even if this would exceed MaxNumberOfLayers
| Name | CreateLayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Classes/Landscape.h |
| Include Path | #include "Landscape.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEditLayers.cpp |
int32 CreateLayer
(
FName InName,
const TSubclassOf < ULandscapeEditLayerBase > & InEditLayerClass,
bool bInIgnoreLayerCountLimit
)
the index of the newly-created layer