Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ULandscapeComponent
Description
Generate a key for a component's layer allocations to use with MaterialInstanceConstantMap.
Generate a key for this component's layer allocations to use with MaterialInstanceConstantMap.
| Name | GetLayerAllocationKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h |
| Include Path | #include "LandscapeComponent.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp |
static FString GetLayerAllocationKey
(
const TArray < FWeightmapLayerAllocationInfo > & Allocations,
UMaterialInterface * LandscapeMaterial,
bool bMobile
)