Navigation
API > API/Plugins > API/Plugins/LandscapePatch
| Name | ULandscapeTexturePatch |
| Type | class |
| Header File | /Engine/Plugins/Editor/LandscapePatch/Source/LandscapePatch/Public/LandscapeTexturePatch.h |
| Include Path | #include "LandscapeTexturePatch.h" |
Syntax
UCLASS (MinimalAPI, Blueprintable, BlueprintType, ClassGroup=Landscape,
Meta=(BlueprintSpawnableComponent))
class ULandscapeTexturePatch : public ULandscapePatchComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → ULandscapePatchComponent → ULandscapeTexturePatch
Implements Interfaces
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HeightRenderTargetFormat | TEnumAsByte< ETextureRenderTargetFormat > | LandscapeTexturePatch.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| LandscapeTexturePatch.h |
|
||
ELandscapeTexturePatchBlendMode GetBlendMode() |
LandscapeTexturePatch.h |
|
|
float GetFalloff() |
LandscapeTexturePatch.h |
|
|
ELandscapeTexturePatchFalloffMode GetFalloffMode() |
LandscapeTexturePatch.h |
|
|
void ResetHeightEncodingMode
(
ELandscapeTextureHeightPatchEncoding EncodingMode |
Just like SetSourceEncodingMode, but resets ZeroInEncoding, WorldSpaceEncodingScale, and height render target format to mode-specific defaults. | LandscapeTexturePatch.h |
|
void SetBlendMode
(
ELandscapeTexturePatchBlendMode BlendModeIn |
Determines how the height patch is blended into the existing terrain. | LandscapeTexturePatch.h |
|
void SetFalloff
(
float FalloffIn |
LandscapeTexturePatch.h |
|
|
void SetFalloffMode
(
ELandscapeTexturePatchFalloffMode FalloffModeIn |
LandscapeTexturePatch.h |
|
|
void SetHeightEncodingMode
(
ELandscapeTextureHeightPatchEncoding EncodingMode |
Set the height encoding mode for the patch, which determines how stored values in the patch are translated into heights when applying to landscape. | LandscapeTexturePatch.h |
|
void SetHeightEncodingSettings
(
const FLandscapeTexturePatchEncodingSettings& Settings |
Set settings that determine how values in the patch are translated into heights. | LandscapeTexturePatch.h |
|
void SetHeightRenderTargetFormat
(
ETextureRenderTargetFormat Format |
LandscapeTexturePatch.h |
|
|
void SetHeightTextureAsset
(
UTexture* TextureIn |
Sets the texture used for height when the height source mode is set to texture asset. | LandscapeTexturePatch.h |
|
void SetUseAlphaChannelForHeight
(
bool bUse |
LandscapeTexturePatch.h |
|
|
| Sets the default weight patch alpha texture asset for all weight patches or overrides the texture for a specific weight patch | LandscapeTexturePatch.h |
|
|
| LandscapeTexturePatch.h |
|
||
void SetZeroHeightMeaning
(
ELandscapeTextureHeightPatchZeroHeightMeaning ZeroHeightMeaningIn |
Set how zero height is interpreted, see comments in ELandscapeTextureHeightPatchZeroHeightMeaning. | LandscapeTexturePatch.h |
|
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddWeightPatch
(
const FName& InWeightmapLayerName, |
Weight related functions: | LandscapeTexturePatch.h |
|
virtual void ClearWeightPatchBlendModeOverride
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual void CreateWeightPatch
(
const FName& InWeightmapLayerName, |
By default, the layer is added with source mode set to be a texture-backed render target. | LandscapeTexturePatch.h |
|
virtual void DisableAllWeightPatches() |
Sets the source mode of all weight patches to "None". | LandscapeTexturePatch.h |
|
virtual FVector2D GetFullUnscaledWorldSize () |
When using an internal texture, gives size in unscaled world coordinates of the patch in the world, based off of UnscaledCoverage and texture resolution (i.e., adds a half-pixel around UnscaledCoverage). | LandscapeTexturePatch.h |
|
virtual UTextureRenderTarget2D * GetHeightAlphaRenderTarget
(
bool bMarkDirty |
Gets the internal height alpha render target, if the height alpha source mode is set to Texture Backed Render Target | LandscapeTexturePatch.h |
|
virtual ELandscapeTexturePatchAlphaSourceMode GetHeightAlphaSourceMode() |
LandscapeTexturePatch.h |
|
|
virtual ELandscapeTexturePatchTextureChannel GetHeightAlphaSourceTextureChannel() |
LandscapeTexturePatch.h |
|
|
virtual const FLandscapeTexturePatchTextureTransform & GetHeightAlphaTextureTransform() |
LandscapeTexturePatch.h |
|
|
virtual UTextureRenderTarget2D * GetHeightRenderTarget
(
bool bMarkDirty |
Gets the internal height render target, if source mode is set to Texture Backed Render Target. | LandscapeTexturePatch.h |
|
virtual ELandscapeTexturePatchSourceMode GetHeightSourceMode() |
LandscapeTexturePatch.h |
|
|
virtual ELandscapeTexturePatchTextureChannel GetHeightTextureChannel() |
LandscapeTexturePatch.h |
|
|
virtual const FLandscapeTexturePatchTextureTransform & GetHeightTextureTransform() |
LandscapeTexturePatch.h |
|
|
virtual bool GetInitResolutionFromLandscape
(
float ResolutionMultiplier, |
Given the landscape resolution, current patch coverage, and a landscape resolution multiplier, gives the needed resolution of the landscape patch. | LandscapeTexturePatch.h |
|
virtual FTransform GetPatchToWorldTransform () |
Gets the transform from patch to world. | LandscapeTexturePatch.h |
|
virtual FVector2D GetResolution () |
Gets the size (in pixels) of the internal textures used by the patch. | LandscapeTexturePatch.h |
|
virtual FVector2D GetUnscaledCoverage () |
Gives size in unscaled world coordinates (ie before applying patch transform) of the patch as measured between the centers of the outermost pixels. | LandscapeTexturePatch.h |
|
virtual UTextureRenderTarget2D * GetWeightPatchAlphaRenderTarget
(
const FName& InWeightmapLayerName, |
Gets the internal weight patch alpha render target, if the weight patch alpha source mode is set to Texture Backed Render Target Returns a reference to the default (shared) weightmap alpha render target unless the given weightmap patch overrides the default alpha settings | LandscapeTexturePatch.h |
|
virtual ELandscapeTexturePatchAlphaSourceMode GetWeightPatchAlphaSourceMode
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
| LandscapeTexturePatch.h |
|
||
virtual ELandscapeTexturePatchTextureChannel GetWeightPatchAlphaTextureChannel
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual const FLandscapeTexturePatchTextureTransform & GetWeightPatchAlphaTextureTransform
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual UTextureRenderTarget2D * GetWeightPatchRenderTarget
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual ELandscapeTexturePatchSourceMode GetWeightPatchSourceMode
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
| LandscapeTexturePatch.h |
|
||
virtual ELandscapeTexturePatchTextureChannel GetWeightPatchTextureChannel
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual const FLandscapeTexturePatchTextureTransform & GetWeightPatchTextureTransform
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual void RemoveAllWeightPatches() |
LandscapeTexturePatch.h |
|
|
virtual void RemoveWeightPatch
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual void SetEditVisibilityLayer
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetHeightAlphaSourceMode
(
ELandscapeTexturePatchAlphaSourceMode InNewMode, |
Changes the source mode of the height patch alpha data. | LandscapeTexturePatch.h |
|
virtual void SetHeightAlphaTextureChannel
(
ELandscapeTexturePatchTextureChannel InTextureChannel, |
Sets the height alpha texture patch color channel | LandscapeTexturePatch.h |
|
virtual void SetHeightAlphaTextureTransform
(
const FLandscapeTexturePatchTextureTransform& InTextureTransform, |
Sets the height alpha texture's UV transform. | LandscapeTexturePatch.h |
|
virtual void SetHeightSourceMode
(
ELandscapeTexturePatchSourceMode NewMode |
Changes source mode. | LandscapeTexturePatch.h |
|
virtual void SetHeightTextureChannel
(
ELandscapeTexturePatchTextureChannel InTextureChannel, |
Sets the height texture's color channel. | LandscapeTexturePatch.h |
|
virtual void SetHeightTextureTransform
(
const FLandscapeTexturePatchTextureTransform& InTextureTransform, |
Sets the height texture's UV transform. | LandscapeTexturePatch.h |
|
virtual void SetResolution
(
FVector2D ResolutionIn |
Sets the resolution of the currently used internal texture or render target. | LandscapeTexturePatch.h |
|
virtual void SetUnscaledCoverage
(
FVector2D Coverage |
Set the patch coverage (see GetUnscaledCoverage for description). | LandscapeTexturePatch.h |
|
virtual void SetUseAlphaChannelForWeightPatch
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetWeightPatchAlphaSourceMode
(
const FName& InWeightmapLayerName, |
Sets the default weight patch alpha source mode for all weight patches or overrides the source for a specific weight patch | LandscapeTexturePatch.h |
|
virtual void SetWeightPatchAlphaTextureChannel
(
const FName& InWeightmapLayerName, |
Sets the texture patch color channel for all weight patches or set the texture channel for a specific weight patch alpha override | LandscapeTexturePatch.h |
|
virtual void SetWeightPatchAlphaTextureTransform
(
const FName& InWeightmapLayerName, |
Sets the weight texture's alpha UV transform. | LandscapeTexturePatch.h |
|
virtual void SetWeightPatchBlendModeOverride
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetWeightPatchSourceMode
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetWeightPatchTextureChannel
(
const FName& InWeightmapLayerName, |
Sets the texture patch color channel specific weight patch | LandscapeTexturePatch.h |
|
virtual void SetWeightPatchTextureTransform
(
const FName& InWeightmapLayerName, |
Sets the weight texture's UV transform. | LandscapeTexturePatch.h |
|
Overridden from ULandscapePatchComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAffectHeightmap() |
ULandscapePatchComponent. | LandscapeTexturePatch.h | |
virtual bool CanAffectVisibilityLayer() |
LandscapeTexturePatch.h | ||
virtual bool CanAffectWeightmap() |
LandscapeTexturePatch.h | ||
virtual bool CanAffectWeightmapLayer
(
const FName& InLayerName |
LandscapeTexturePatch.h | ||
virtual void GetRenderDependencies
(
TSet< UObject* >& OutDependencies |
Allows the patch to specify textures that need to be ready/compiled before applying the patch. | LandscapeTexturePatch.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CheckForErrors() |
UActorComponent. | LandscapeTexturePatch.h | |
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData() |
UActorComponent. | LandscapeTexturePatch.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
UObject. | LandscapeTexturePatch.h | |
virtual void PostLoad() |
UObject. | LandscapeTexturePatch.h | |
virtual void Serialize
(
FArchive& Ar |
LandscapeTexturePatch.h |
Overridden from ILandscapeEditLayerRenderer
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BlendLayer
(
UE::Landscape::EditLayers::FRenderParams& RenderParams, |
LandscapeTexturePatch.h | ||
virtual bool CanGroupRenderLayerWith
(
TScriptInterface< ILandscapeEditLayerRenderer > InOtherRenderer |
LandscapeTexturePatch.h | ||
virtual FString GetEditLayerRendererDebugName() |
LandscapeTexturePatch.h | ||
virtual void GetRendererStateInfo
(
const UE::Landscape::EditLayers::FMergeContext* InMergeContext, |
ILandscapeEditLayerRenderer, via ULandscapePatchComponent. | LandscapeTexturePatch.h | |
virtual UE::Landscape::EditLayers::ERenderFlags GetRenderFlags
(
const UE::Landscape::EditLayers::FMergeContext* InMergeContext |
LandscapeTexturePatch.h | ||
virtual TArray< UE::Landscape::EditLayers::FEditLayerRenderItem > GetRenderItems
(
const UE::Landscape::EditLayers::FMergeContext* InMergeContext |
LandscapeTexturePatch.h | ||
virtual bool RenderLayer
(
UE::Landscape::EditLayers::FRenderParams& RenderParams, |
LandscapeTexturePatch.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTexture2D * GetHeightAlphaInternalTexture() |
LandscapeTexturePatch.h | ||
| LandscapeTexturePatch.h | |||
UTexture2D * GetHeightInternalTexture() |
LandscapeTexturePatch.h | ||
UTexture2D * GetWeightPatchAlphaInternalTexture
(
ULandscapeWeightPatchTextureInfo* WeightPatch, |
Returns the default weight patch alpha internal texture or the specific weight patch override internal texture | LandscapeTexturePatch.h | |
UTextureRenderTarget2D * GetWeightPatchAlphaRenderTarget
(
ULandscapeWeightPatchTextureInfo* WeightPatch, |
Returns the default weight patch alpha render target or the specific weight patch override render target | LandscapeTexturePatch.h | |
UTexture2D * GetWeightPatchInternalTexture
(
ULandscapeWeightPatchTextureInfo* WeightPatch |
LandscapeTexturePatch.h | ||
UTextureRenderTarget2D * GetWeightPatchRenderTarget
(
ULandscapeWeightPatchTextureInfo* WeightPatch |
LandscapeTexturePatch.h | ||
void RequestReinitializeHeight() |
Given the current initialization settings, reinitialize the height patch. | LandscapeTexturePatch.h |
|
void RequestReinitializeWeights() |
LandscapeTexturePatch.h |
|
|
void SnapToLandscape () |
Adjusts patch rotation to be aligned to a 90 degree increment relative to the landscape, adjusts UnscaledPatchCoverage such that it becomes a multiple of landscape quad size, and adjusts patch location so that the boundaries of the covered area lie on the nearest landscape vertices. | LandscapeTexturePatch.h |
|
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseTextureAlphaForHeight_DEPRECATED | bool | LandscapeTexturePatch.h |
|