Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ILandscapeEditorServices
Description
Attempts to find an edit layer named InEditLayerName in InTargetLandscape. Creates the layer if it does not exist.
| Name | GetOrCreateEditLayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Public/LandscapeEditorServices.h |
| Include Path | #include "LandscapeEditorServices.h" |
int32 GetOrCreateEditLayer
(
FName InEditLayerName,
ALandscape * InTargetLandscape,
const TSubclassOf < ULandscapeEditLayerBase > & InEditLayerClass
)
The index at which the edit layer named InEditLayerName exists
Parameters
| Name | Remarks |
|---|---|
| InEditLayerName | The name of the layer to search for and possibly create |
| InTargetLandscape | The landscape which should have a layer called InEditLayerName |
| InEditLayerClass | The class of the edit layer to create. If none specified, a standard edit layer (ULandscapeEditLayer) will be created |