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 |
bool LandscapeImportHeightmapFromRenderTarget
&40;
UTextureRenderTarget2D &42; InRenderTarget,
bool InImportHeightFromRGChannel
&41;
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 |