ALandscapeProxy::LandscapeImportHeightmapFromRenderTarget

Overwrites a landscape heightmap with render target data

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeProxy.h

Include

#include "LandscapeProxy.h"

Source

/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp

Syntax

bool LandscapeImportHeightmapFromRenderTarget
(
    UTextureRenderTarget2D * InRenderTarget,
    bool InImportHeightFromRGChannel
)

Remarks

Overwrites a landscape heightmap with render target data

that using RTF_RGBA16f with InImportHeightFromRGChannel == false, could have precision loss Only works in the editor

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss