Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ALandscape
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/Landscape.h |
| Include | #include "Landscape.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEditLayers.cpp |
void ForEachLayerConst
(
TFunctionRef< bool &)> Fn
)
Remarks
Runs the given function on each edit layer, with the possibility of early exit Most easily used with a lambda as follows: ForEachLayerConst(const [FLandscapeLayer](API/Runtime/Landscape/FLandscapeLayer)& InLayer -> bool { return continueLoop ? true : false; });