UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MeshMergingSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "MeshMergingSettings.generated.h"
7
8
9UENUM()
11{
12 // Whether or not to export all of the LODs found in the source meshes
13 AllLODs = 0 UMETA(DisplayName = "Use all LOD levels", ScriptName="AllLods;AllLODs"),
14 // Whether or not to export all of the LODs found in the source meshes
15 SpecificLOD = 1 UMETA(DisplayName = "Use specific LOD level"),
16 // Whether or not to calculate the appropriate LOD model for the given screen size
17 CalculateLOD = 2 UMETA(DisplayName = "Calculate correct LOD level"),
18 // Whether or not to use the lowest-detail LOD
19 LowestDetailLOD = 3 UMETA(DisplayName = "Always use the lowest-detail LOD (i.e. the highest LOD index)")
20};
21
22UENUM()
28
30UENUM()
36
40USTRUCT(Blueprintable)
42{
44
45
46 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadWrite, Category = MeshSettings, meta=(ClampMax = 4096, EditCondition = "!bComputedLightMapResolution", DisplayAfter="bGenerateLightMapUV", DisplayName="Target Lightmap Resolution"))
47 int32 TargetLightMapResolution;
48
50 UPROPERTY(EditAnywhere, Category = MeshSettings, meta=(DisplayAfter="bBakeVertexDataToMesh"))
51 EUVOutput OutputUVs[8]; // Should be MAX_MESH_TEXTURE_COORDS but as this is an engine module we cant include RawMesh
52
54 UPROPERTY(EditAnywhere, Category = MaterialSettings, BlueprintReadWrite, meta = (EditCondition = "bMergeMaterials", DisplayAfter="bMergeMaterials"))
55 FMaterialProxySettings MaterialSettings;
56
58 UPROPERTY(EditAnywhere, Category = MaterialSettings, meta=(DisplayAfter="MaterialSettings"))
59 int32 GutterSize;
60
62 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings, meta = (DisplayAfter="bBakeVertexDataToMesh", DisplayName = "LOD Selection Type"))
63 EMeshLODSelectionType LODSelectionType;
64
66 UPROPERTY(EditAnywhere, Category = MeshSettings, BlueprintReadWrite, meta = (DisplayAfter="LODSelectionType", EditCondition = "LODSelectionType == EMeshLODSelectionType::SpecificLOD", ClampMin = "0", ClampMax = "7", UIMin = "0", UIMax = "7", EnumCondition = 1))
68
70 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadWrite, Category = MeshSettings, meta=(DisplayName="Generate Lightmap UV"))
71 uint8 bGenerateLightMapUV:1;
72
74 UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadWrite, Category = MeshSettings, meta=(DisplayName="Computed Lightmap Resolution"))
75 uint8 bComputedLightMapResolution:1;
76
78 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
79 uint8 bPivotPointAtZero:1;
80
82 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
83 uint8 bMergePhysicsData:1;
84
86 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
87 uint8 bMergeMeshSockets : 1;
88
90 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MaterialSettings, meta=(EditCondition="LODSelectionType == EMeshLODSelectionType::LowestDetailLOD || LODSelectionType == EMeshLODSelectionType::SpecificLOD"))
91 uint8 bMergeMaterials:1;
92
94 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
95 uint8 bBakeVertexDataToMesh:1;
96
98 UPROPERTY(EditAnywhere, Category = MaterialSettings, BlueprintReadWrite, meta = (EditCondition = "bMergeMaterials"))
99 uint8 bUseVertexDataForBakingMaterial:1;
100
102 UPROPERTY(Category = MaterialSettings, EditAnywhere, BlueprintReadWrite, meta = (EditCondition = "bMergeMaterials"))
103 uint8 bUseTextureBinning:1;
104
106 UPROPERTY(EditAnywhere, Category = MaterialSettings)
107 uint8 bReuseMeshLightmapUVs:1;
108
110 UPROPERTY(EditAnywhere, Category = MaterialSettings)
111 uint8 bMergeEquivalentMaterials:1;
112
114 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = LandscapeCulling)
115 uint8 bUseLandscapeCulling:1;
116
118 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
119 uint8 bIncludeImposters:1;
120
122 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = MeshSettings)
124
126 UPROPERTY(EditAnywhere, Category = MeshSettings)
127 uint8 bAllowDistanceField:1;
128
130 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = NaniteSettings)
131 FMeshNaniteSettings NaniteSettings;
132
133#if WITH_EDITORONLY_DATA
134 UPROPERTY()
136
137 UPROPERTY()
139
140 UPROPERTY()
142
143 UPROPERTY()
145
146 UPROPERTY()
148
149 UPROPERTY()
151
152 UPROPERTY()
154
155 UPROPERTY()
157
158 UPROPERTY()
160
161 UPROPERTY()
163
164 UPROPERTY()
166#endif
167
169
172
173#if WITH_EDITORONLY_DATA
175 void PostSerialize(const FArchive& Ar);
176#endif
177};
178
179template<>
181{
182#if WITH_EDITORONLY_DATA
183 enum
184 {
185 WithPostSerialize = true,
186 };
187#endif
188};
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
EUVOutput
Definition MeshMergingSettings.h:32
@ DoNotOutputChannel
EMeshMergeType
Definition MeshMergingSettings.h:24
EMeshLODSelectionType
Definition MeshMergingSettings.h:11
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UMETA(...)
Definition ObjectMacros.h:747
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Archive.h:1208
Definition MaterialMerging.h:34
Definition MeshMergingSettings.h:42
EMeshMergeType MergeType
Definition MeshMergingSettings.h:168
Definition EngineTypes.h:3040
Definition StructOpsTypeTraits.h:11
@ WithPostSerialize
Definition StructOpsTypeTraits.h:25
Definition StructOpsTypeTraits.h:46