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 RenderWeightmap
(
FTransform InWorldTransform,
FBox2D InExtents,
FName InWeightmapLayerName,
UTextureRenderTarget2D * OutRenderTarget
)
Remarks
Render the final weightmap for the requested layer, in the requested top-down window, as one -atlased- texture in the provided render target 2D 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. |
| InWeightmapLayerName | Weightmap layer that is being requested to render |
| OutRenderTarget | Render target in which the texture will be rendered. The size/format of the render target will be respected. |