UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "LandscapeSettings.generated.h"
10
13
14UENUM()
32
33UCLASS(config = Engine, defaultconfig, meta = (DisplayName = "Landscape"), MinimalAPI)
35{
37
38public:
40 bool IsLandscapeResolutionRestricted() const { return InRestrictiveMode(); }
41
43 bool AreBlueprintToolsAllowed() const { return !InRestrictiveMode(); }
44
46 int32 GetTotalResolutionLimit() const { return SideResolutionLimit * SideResolutionLimit; }
47
48 bool InRestrictiveMode() const { return bRestrictiveMode; }
49 void SetRestrictiveMode(bool bEnabled) { bRestrictiveMode = bEnabled; }
50
51 int32 GetSideResolutionLimit() const { return SideResolutionLimit; }
52
53 float GetBrushSizeUIMax() const { return BrushSizeUIMax; }
54 float GetBrushSizeClampMax() const { return BrushSizeClampMax; }
55
56 int32 GetHLODMaxTextureSize() const { return HLODMaxTextureSize; }
57
58 float GetSplineIconWorldZOffset() const { return SplineIconWorldZOffset; }
59 float GetSplineIconScale() const { return SplineIconScale; }
60
62 TSoftObjectPtr<UMaterialInterface> GetDefaultLandscapeMaterial() const { return DefaultLandscapeMaterial; }
63
66
67 bool GetShouldUpdateEditLayersDuringInteractiveChanges() const { return bShouldUpdateEditLayersDuringInteractiveChanges; }
68
70
72
73 ELandscapeTargetLayerBlendMethod GetTargetLayerDefaultBlendMethod() const { return TargetLayerDefaultBlendMethod; }
74
75#if WITH_EDITOR
76 //~ Begin UObject Interface.
77 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
78 virtual void PreEditUndo() override;
79 virtual void PostEditUndo() override;
80#endif // WITH_EDITOR
81
82public:
83 UPROPERTY(config, EditAnywhere, Category = "Edit Layers", meta=(UIMin = "1", UIMax = "32", ClampMin = "1", ClampMax = "32", ToolTip = "This option controls the maximum editing layers that can be added to a Landscape"))
84 int32 MaxNumberOfLayers = 8;
85
86 UPROPERTY(EditAnywhere, config, Category = "Edit Layers", meta = (ToolTip =
87 "When true, automatic edit layer creation pops up a dialog where the new layer can be reordered relative to other layers."))
89
90 UPROPERTY(config, EditAnywhere, Category = "Configuration", meta=(ToolTip = "Maximum Dimension of Landscape in Components"))
91 int32 MaxComponents = 256;
92
93 UPROPERTY(config, EditAnywhere, Category = "Configuration", meta = (UIMin = "1", UIMax = "1024", ClampMin = "1", ClampMax = "1024", ToolTip = "Maximum Size of Import Image Cache in MB"))
94 uint32 MaxImageImportCacheSizeMegaBytes = 256;
95
96 UPROPERTY(config, EditAnywhere, Category = "Configuration", meta = (UIMin = "0.0", UIMax = "10.0", ClampMin = "0.0", ClampMax = "10.0", ToolTip = "Exponent for the Paint Tool Strength"))
97 float PaintStrengthGamma = 2.2f;
98
99 UPROPERTY(config, EditAnywhere, Category = "Configuration", meta = (ToolTip = "Disable Painting Startup Slowdown"))
100 bool bDisablePaintingStartupSlowdown = true;
101
103 UPROPERTY(Config, Category = "Configuration", EditAnywhere)
105
107 UPROPERTY(config)
108 int32 SideResolutionLimit = 2048;
109
110 UPROPERTY(EditAnywhere, config, Category = "Materials", meta = (ToolTip = "Default Landscape Material will be prefilled when creating a new landscape."))
111 TSoftObjectPtr<UMaterialInterface> DefaultLandscapeMaterial;
112
113 UPROPERTY(EditAnywhere, config, Category = "Target Layers", meta = (ToolTip = "Default Layer Info Object"))
115
116 UPROPERTY(EditAnywhere, config, Category = "Configuration", meta = (ToolTip = "Maximum size that can be set via the slider for the landscape sculpt/paint brushes"))
117 float BrushSizeUIMax = 8192;
118
119 UPROPERTY(EditAnywhere, config, Category = "Configuration", meta = (ToolTip = "Maximum size that can be set manually for the landscape sculpt/paint brushes"))
120 float BrushSizeClampMax = 65536;
121
122 UPROPERTY(EditAnywhere, config, Category = "HLOD", meta = (DisplayName = "HLOD Max Texture Size", ClampMin = "64", ClampMax = "8192", ToolTip = "Maximum size of the textures generated for landscape HLODs"))
123 int32 HLODMaxTextureSize = 1024;
124
126 UPROPERTY(EditAnywhere, config, Category = "Edit Layers")
127 bool bShouldUpdateEditLayersDuringInteractiveChanges = false;
128
130 bool bRestrictiveMode = false;
131
133 UPROPERTY(EditAnywhere, config, Category = "Spline", meta = (ClampMin = "0", UIMax = "4096"))
134 float SplineIconWorldZOffset = 100.0f;
135
136 UPROPERTY(EditAnywhere, config, Category = "Spline", meta = (ClampMin = "32", UIMax = "2048"))
137 float SplineIconScale = 125.0f;
138
139 UPROPERTY(EditAnywhere, config, Category = "Target Layers", meta = (ToolTip =
142
143 UPROPERTY(EditAnywhere, config, Category = "Configuration", meta = (ToolTip =
144 "When true, temporal anti-aliasing will be inactive while in landscape mode. This avoids the ghosting effect on the landscape brush but can lead to aliasing or shimmering on other parts of the image."))
146
148 UPROPERTY(Config, Category = "Target Layers", EditAnywhere)
150
151private:
152 TOptional<bool> DisplayTargetLayerThumbnailsBeforeUndo;
153};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
ELandscapeTargetLayerBlendMethod
Definition LandscapeEditTypes.h:33
ELandscapeDirtyingMode
Definition LandscapeSettings.h:16
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
uint32 Size
Definition VulkanMemory.cpp:4034
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Engine.Build.cs:7
Definition Landscape.Build.cs:7
Definition DeveloperSettings.h:24
Definition LandscapeLayerInfoObject.h:60
Definition LandscapeSettings.h:35
TSoftObjectPtr< ULandscapeLayerInfoObject > GetDefaultLayerInfoObject() const
Definition LandscapeSettings.h:65
int32 GetSideResolutionLimit() const
Definition LandscapeSettings.h:51
int32 GetHLODMaxTextureSize() const
Definition LandscapeSettings.h:56
bool IsLandscapeResolutionRestricted() const
Definition LandscapeSettings.h:40
bool InRestrictiveMode() const
Definition LandscapeSettings.h:48
float GetBrushSizeClampMax() const
Definition LandscapeSettings.h:54
bool ShouldDisableTemporalAntiAliasingInLandscapeMode() const
Definition LandscapeSettings.h:71
float GetSplineIconScale() const
Definition LandscapeSettings.h:59
ELandscapeTargetLayerBlendMethod GetTargetLayerDefaultBlendMethod() const
Definition LandscapeSettings.h:73
bool AreBlueprintToolsAllowed() const
Definition LandscapeSettings.h:43
float GetBrushSizeUIMax() const
Definition LandscapeSettings.h:53
bool GetShouldUpdateEditLayersDuringInteractiveChanges() const
Definition LandscapeSettings.h:67
void SetRestrictiveMode(bool bEnabled)
Definition LandscapeSettings.h:49
float GetSplineIconWorldZOffset() const
Definition LandscapeSettings.h:58
int32 GetTotalResolutionLimit() const
Definition LandscapeSettings.h:46
bool ShouldDisplayTargetLayerThumbnails() const
Definition LandscapeSettings.h:69
TSoftObjectPtr< UMaterialInterface > GetDefaultLandscapeMaterial() const
Definition LandscapeSettings.h:62
Definition MaterialInterface.h:296
#define MB
Definition lz4.cpp:243
@ false
Definition radaudio_common.h:23
Definition UnrealType.h:6865
Definition Optional.h:131
Definition SoftObjectPtr.h:174