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/Landscape.cpp |
UFUNCTION (BlueprintCallable, Category="Landscape|Runtime")
bool RenderWeightmaps
(
FTransform InWorldTransform,
FBox2D InExtents,
const TArray< FName > & InWeightmapLayerNames,
UTextureRenderTarget * OutRenderTarget
)
Remarks
Render the final weightmaps for the requested layers, in the requested top-down window, as one -atlased- texture in the provided render target (2D or 2DArray) Can be called at runtime. false in case of failure (e.g. invalid inputs, incompatible render target format...)
Parameters
| Name | Description |
|---|---|
| InWorldTransform | World transform of the area where the texture should be rendered |
| InExtents | Extents of the area where the texture should be rendered (local to InWorldTransform). If size is zero, then the entire loaded landscape will be exported. |
| InWeightmapLayerNames | List of weightmap layers that are being requested to render |
| OutRenderTarget | Render target in which the texture will be rendered. The size/format of the render target will be respected.If a UTextureRenderTarget2D is passed, the requested layers will be packed in the RGBA channels in order (up to the number of channels available with the render target's format).If a UTextureRenderTarget2DArray is passed, the requested layers will be packed in the RGBA channels of each slice (up to the number of channels * slices available with the render target's format and number of slices). |