Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/FMergeRenderContext
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeEditLayerRenderer.h |
| Include | #include "LandscapeEditLayerRenderer.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEditLayerRenderer.cpp |
void ForEachTargetLayer
(
const TBitArray<> & InTargetLayerBitIndices,
TFunctionRef< bool(int32, FName)> Fn
) const
Remarks
Runs the given function for each all valid target layer in the bit indices in parameters, with the possibility of early exit Most easily used with a lambda as follows: ForEachTargetLayer(int32 InTargetLayerIndex, FName InTargetLayerName -> bool { return continueLoop ? true : false; });