UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticMeshComponentLODInfo.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "RawIndexBuffer.h"
6
7#include "StaticMeshComponentLODInfo.generated.h"
8
11
12USTRUCT()
14{
16
17
18 FGuid OriginalMapBuildDataId;
19
21 FGuid MapBuildDataId;
22
24 FMeshMapBuildData* LegacyMapBuildData;
25
31 TUniquePtr<FMeshMapBuildData> OverrideMapBuildData;
32
34 TArray<struct FPaintedVertex> PaintedVertices;
35
37 FColorVertexBuffer* OverrideVertexColors;
38
43 class UStaticMeshComponent* OwningComponent;
44
50
52 void CleanUp();
53
59 ENGINE_API bool CreateMapBuildDataId(int32 LodIndex);
60
65 ENGINE_API void BeginReleaseOverrideVertexColors();
66
67 ENGINE_API void ReleaseOverrideVertexColorsAndBlock();
68
69 void ReleaseResources();
70
72 void ExportText(FString& ValueStr);
73 void ImportText(const TCHAR** SourceText);
74
77
78#if WITH_EDITOR
79 bool bMapBuildDataChanged = false;
80#endif
81
82private:
84 FStaticMeshComponentLODInfo &operator=( const FStaticMeshComponentLODInfo &rhs ) { check(0); return *this; }
85};
86
87template<>
89{
90 enum
91 {
92 WithCopy = false
93 };
94};
#define check(expr)
Definition AssertionMacros.h:314
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition Archive.h:1208
Definition ColorVertexBuffer.h:16
Definition MapBuildDataRegistry.h:56
Definition Array.h:670
Definition UniquePtr.h:107
Definition Guid.h:109
Definition StaticMeshComponent.h:55
Definition StaticMeshComponentLODInfo.h:14
Definition StructOpsTypeTraits.h:11
@ WithCopy
Definition StructOpsTypeTraits.h:17
Definition StructOpsTypeTraits.h:46