Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ALandscape
Description
Copies edit layer data from each of the InProxy's landscape components to the given edit layer. Overwrites existing data in the destination edit layer
| Name | CopyDataToEditLayer |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Classes/Landscape.h |
| Include Path | #include "Landscape.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEditLayers.cpp |
void CopyDataToEditLayer
(
ALandscapeProxy * InProxy,
const FGuid & InSourceEditLayerGuid,
const FGuid & InDestEditLayerGuid,
bool bInUseObsoleteLayerData
)
Parameters
| Name | Remarks |
|---|---|
| InProxy | is the Proxy to copy Landscape Component data from |
| InSourceEditLayerGuid | is the source edit layer Guid. When valid, copies data from the given edit layer. If invalid, copies each components final merged data |
| InDestEditLayerGuid | is the destination edit layer Guid. When valid, must represent a ULandscapeEditLayerPersistent on the ALandscape. If invalid, the default edit layer is used |
| bInUseObsoleteLayerData | When true, uses obsolete or duplicated final layer data stored during initial registration. Landscape components only duplicate final data when they have >= 1 obsolete layer on load |