Navigation
API > API/Plugins > API/Plugins/LandscapePatch > API/Plugins/LandscapePatch/ULandscapeTexturePatch
Description
Sets the height texture's color channel. Texture channel is restricted when HeightSource is InternalData or HeightEncoding is NativePackedHeight (Assumes RG channels)
| Name | SetHeightTextureChannel |
| Type | function |
| Header File | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Public/LandscapeTexturePatch.h |
| Include Path | #include "LandscapeTexturePatch.h" |
| Source | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Private/LandscapeTexturePatch.cpp |
UFUNCTION (BlueprintCallable, Category=LandscapePatch)
virtual void SetHeightTextureChannel
(
ELandscapeTexturePatchTextureChannel InTextureChannel,
bool bAlwaysMarkDirty
)
Parameters
| Name | Remarks |
|---|---|
| InTextureChannel | the color channel of the texture to use |
| bAlwaysMarkDirty | mark the package dirty when channel property changes |