Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ILandscapeEditorServices
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeEditorServices.h |
| Include | #include "LandscapeEditorServices.h" |
int32 GetOrCreateEditLayer
(
FName InEditLayerName,
ALandscape * InTargetLandscape,
const TSubclassOf< ULandscapeEditLayerBase > & InEditLayerClass
)
Remarks
Attempts to find an edit layer named InEditLayerName in InTargetLandscape. Creates the layer if it does not exist. The index at which the edit layer named InEditLayerName exists
Parameters
| Name | Description |
|---|---|
| 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 |