Navigation
API > API/Plugins > API/Plugins/LandscapePatch
| Name | ULandscapeTexturePatch |
| Type | class |
| Header File | /Engine/Plugins/Experimental/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
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FEditLayerRenderItem | UE::Landscape::EditLayers::FEditLayerRenderItem | LandscapeTexturePatch.h | |
| FEditLayerTargetTypeState | UE::Landscape::EditLayers::FEditLayerTargetTypeState | LandscapeTexturePatch.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HeightRenderTargetFormat | TEnumAsByte< ETextureRenderTargetFormat > | LandscapeTexturePatch.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddWeightPatch
(
const FName& InWeightmapLayerName, |
By default, the layer is added with source mode set to be a texture-backed render target. | LandscapeTexturePatch.h |
|
virtual void ClearWeightPatchBlendModeOverride
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
virtual void DisableAllWeightPatches() |
Sets the source mode of all weight patches to "None". | LandscapeTexturePatch.h |
|
| 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 * 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 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 * GetWeightPatchRenderTarget
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual ELandscapeTexturePatchSourceMode GetWeightPatchSourceMode
(
const FName& InWeightmapLayerName |
LandscapeTexturePatch.h |
|
|
| LandscapeTexturePatch.h |
|
||
virtual void RemoveAllWeightPatches() |
LandscapeTexturePatch.h |
|
|
virtual void RemoveWeightPatch
(
const FName& InWeightmapLayerName |
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 |
|
virtual void SetEditVisibilityLayer
(
const FName& InWeightmapLayerName, |
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 |
|
|
virtual void SetHeightSourceMode
(
ELandscapeTexturePatchSourceMode NewMode |
Changes source mode. | LandscapeTexturePatch.h |
|
void SetHeightTextureAsset
(
UTexture* TextureIn |
Sets the texture used for height when the height source mode is set to texture asset. | 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 |
|
void SetUseAlphaChannelForHeight
(
bool bUse |
Determines whether the height patch alpha channel is used for blending into the existing values. | LandscapeTexturePatch.h |
|
virtual void SetUseAlphaChannelForWeightPatch
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetWeightPatchBlendModeOverride
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
virtual void SetWeightPatchSourceMode
(
const FName& InWeightmapLayerName, |
LandscapeTexturePatch.h |
|
|
| LandscapeTexturePatch.h |
|
||
void SetZeroHeightMeaning
(
ELandscapeTextureHeightPatchZeroHeightMeaning ZeroHeightMeaningIn |
Set how zero height is interpreted, see comments in ELandscapeTextureHeightPatchZeroHeightMeaning. | LandscapeTexturePatch.h |
|
Overridden from ULandscapePatchComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAffectHeightmap() |
ILandscapeEditLayerRenderer Subclasses are expected to implement GetEditLayerRendererDebugName, GetRendererStateInfo, GetRenderItems, and RenderLayer These determine whether the patch is configured correctly to affect height/weightmaps, ignoring whether it is currently enabled or not. | LandscapeTexturePatch.h | |
virtual bool CanAffectVisibilityLayer() |
LandscapeTexturePatch.h | ||
virtual bool CanAffectWeightmap() |
LandscapeTexturePatch.h | ||
virtual bool CanAffectWeightmapLayer
(
const FName& InLayerName |
LandscapeTexturePatch.h | ||
| Allows the patch to specify textures that need to be ready/compiled before applying the patch. | LandscapeTexturePatch.h | ||
virtual UTextureRenderTarget2D * RenderLayer_Native
(
const FLandscapeBrushParameters& InParameters, |
ULandscapePatchComponent. | 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 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< 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 |
|---|---|---|---|
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 |
|