UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeEditTypes.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"
6#include "Misc/EnumRange.h"
7
8#include "LandscapeEditTypes.generated.h"
9
10UENUM()
12{
13 Heightmap = 0,
14 Weightmap = 1,
15 Visibility = 2,
16 Invalid = 3 UMETA(Hidden), // only valid for LandscapeEdMode->CurrentToolTarget.TargetType
17 Count = Invalid UMETA(Hidden), // Only the elements above Invalid actually count as proper target types
18};
20
30
31UENUM()
33{
34 None = 0 UMETA(DisplayName = "No Weight Blending", Tooltip = "The target layer's weight is unaffected by other target layers."),
35 FinalWeightBlending UMETA(DisplayName = "Weight Blending (Legacy)", Tooltip = "The target layer's weight is adjusted against the weights of the other (legacy) weight-blended target layers such that their sum is 0. Doesn't work well when combined with edit layers, as this (horizontal) blend is only applied at the end of the edit layers (vertical) blending."),
36 PremultipliedAlphaBlending UMETA(DisplayName = "Advanced Weight Blending", Tooltip = "The target layer's weight is adjusted against the weights of the other advanced weight-blended target layers such that their sum is 0. Takes into account edit layers : the blending is applied at each edit layer, such that the target layer's weight will always be weight-blended but will also retain its relative weight against other edit layers underneath."),
37 Count UMETA(Hidden), // Only the elements above actually count as proper target types
38};
39
40namespace UE::Landscape
41{
42
44{
45 None = 0,
46
47 // Actual flags :
48 GrassMaps = (1 << 0),
49 PhysicalMaterials = (1 << 1),
50 NaniteMeshes = (1 << 2),
51 PackageModified = (1 << 3),
52
53 // Not real flags, only useful to loop through the actual flags :
55 Last = LastPlusOne - 1,
56
57 // Combined flags :
59};
61
63{
64 const uint32 InFlagAsUInt32 = static_cast<uint32>(InFlag);
65 check((InFlagAsUInt32 > static_cast<uint32>(EOutdatedDataFlags::None)) && (InFlagAsUInt32 < static_cast<uint32>(EOutdatedDataFlags::LastPlusOne)) && (FMath::CountBits(InFlagAsUInt32) == 1u));
66 return FMath::CountTrailingZeros(InFlagAsUInt32);
67}
68
69enum class EBuildFlags : uint8
70{
71 None = 0,
72
73 WriteFinalLog = (1 << 0), // Log a message at the end of the build operation
74 ForceRebuild = (1 << 1), // Forces a rebuild even if not needed
75};
77
78} // namespace UE::Landscape
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
#define ENUM_RANGE_BY_COUNT(EnumType, Count)
Definition EnumRange.h:25
ELandscapeTargetLayerBlendMethod
Definition LandscapeEditTypes.h:33
ELandscapeToolTargetTypeFlags
Definition LandscapeEditTypes.h:22
ELandscapeToolTargetType
Definition LandscapeEditTypes.h:12
#define UENUM(...)
Definition ObjectMacros.h:749
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Landscape.h:55
EBuildFlags
Definition LandscapeEditTypes.h:70
EOutdatedDataFlags
Definition LandscapeEditTypes.h:44
uint32 GetOutdatedDataFlagIndex(EOutdatedDataFlags InFlag)
Definition LandscapeEditTypes.h:62