Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ALandscapeProxy
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h |
| Include | #include "LandscapeProxy.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp |
UFUNCTION (BlueprintCallable,
Meta=(DisplayName="Landscape Import Heightmap from RenderTarget", Keywords="Push RenderTarget to Landscape Heightmap", UnsafeDuringActorConstruction="true"),
Category=Rendering)
bool LandscapeImportHeightmapFromRenderTarget
(
UTextureRenderTarget2D * InRenderTarget,
bool InImportHeightFromRGChannel
)
Remarks
Overwrites a landscape heightmap with render target data
Parameters
| Name | Description |
|---|---|
| InRenderTarget | Valid render target with a format of RTF_RGBA16f, RTF_RGBA32f or RTF_RGBA8 |
| InImportHeightFromRGChannel | Only relevant when using format RTF_RGBA16f or RTF_RGBA32f, and will tell us if we should import the height data from the R channel only of the Render target or from R & G. Note that using RTF_RGBA16f with InImportHeightFromRGChannel == false, could have precision loss Only works in the editor |