UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeMeshProxyComponent.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"
7#include "Misc/Guid.h"
9
10#include "LandscapeMeshProxyComponent.generated.h"
11
12class ALandscapeProxy;
14
15UCLASS(MinimalAPI)
16class ULandscapeMeshProxyComponent : public UStaticMeshComponent
17{
19
20public:
22
23private:
24 /* The landscape this proxy was generated for */
25 UPROPERTY()
26 FGuid LandscapeGuid;
27
28 /* The section coordinates of the landscape components that this proxy was generated for. Used to register with LandscapeRender when LODGroupKey == 0 */
29 UPROPERTY()
30 TArray<FIntPoint> ProxyComponentBases;
31
32 /* The center of the landscape components that this proxy was generated for, in local component space. Used to register with LandscapeRender when LODGroupKey != 0 */
33 UPROPERTY()
34 TArray<FVector> ProxyComponentCentersObjectSpace;
35
36 UPROPERTY()
37 FVector ComponentXVectorObjectSpace;
38
39 UPROPERTY()
40 FVector ComponentYVectorObjectSpace;
41
42 UPROPERTY()
43 int32 ComponentResolution;
44
45 /* LOD level this proxy was generated for */
46 UPROPERTY()
47 int8 ProxyLOD;
48
49 UPROPERTY()
50 uint32 LODGroupKey;
51
52public:
53 LANDSCAPE_API void InitializeForLandscape(ALandscapeProxy* Landscape, int8 InProxyLOD);
54
55 virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
56 virtual void PostLoad() override;
57};
58
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
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 UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition UObjectGlobals.h:1292
Definition PrimitiveSceneProxy.h:296
Definition Landscape.Build.cs:7
Definition Array.h:670
Definition LandscapeMeshProxyComponent.h:17
Definition Guid.h:109