UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeStreamingProxy.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 "LandscapeProxy.h"
8
9#include "LandscapeStreamingProxy.generated.h"
10
11class ALandscape;
12
13#if WITH_EDITOR
16#endif
17
18UCLASS(MinimalAPI, notplaceable)
19class ALandscapeStreamingProxy : public ALandscapeProxy
20{
22
23public:
25
26#if WITH_EDITORONLY_DATA
27 UPROPERTY()
29#endif // WITH_EDITORONLY_DATA
30
31private:
32 UPROPERTY(EditAnywhere, Category = LandscapeProxy, Meta = (DisplayName = "Landscape Actor"))
33 TSoftObjectPtr<ALandscape> LandscapeActorRef;
34
35 UPROPERTY()
36 TSet<FName> OverriddenSharedProperties;
37
38public:
39 //~ Begin UObject Interface
40#if WITH_EDITOR
41 virtual bool ShouldExport() override { return false; }
42 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
43 virtual bool CanEditChange(const FProperty* InProperty) const override;
44 virtual void PostRegisterAllComponents() override;
45 virtual AActor* GetSceneOutlinerParent() const override;
46 virtual bool CanDeleteSelectedActor(FText& OutReason) const override;
47 virtual bool GetReferencedContentObjects(TArray<UObject*>& Objects) const override;
48 virtual bool CanChangeIsSpatiallyLoadedFlag() const override { return AActor::CanChangeIsSpatiallyLoadedFlag(); }
50 virtual void GetActorDescProperties(FPropertyPairsMap& PropertyPairsMap) const override;
51#endif
52 //~ End UObject Interface
53
54 //~ Begin ALandscapeBase Interface
55 virtual ALandscape* GetLandscapeActor() override;
56 virtual const ALandscape* GetLandscapeActor() const override;
57 void LANDSCAPE_API SetLandscapeActor(ALandscape* InLandscape);
58 virtual UMaterialInterface* GetLandscapeMaterial(int8 InLODIndex = INDEX_NONE) const override;
59 virtual UMaterialInterface* GetLandscapeHoleMaterial() const override;
60 //~ End ALandscapeBase Interface
61
62 // Check input Landscape actor is match for this LandscapeProxy (by GUID)
64
65#if WITH_EDITOR
66 //~ Begin ALandscapeProxy Interface
67 virtual bool IsSharedPropertyOverridden(const FName& InPropertyName) const override;
68 virtual void SetSharedPropertyOverride(const FName& InPropertyName, const bool bIsOverridden) override;
69 //~ End ALandscapeProxy Interface
70
71protected:
72 virtual void FixupOverriddenSharedProperties() override;
73#endif // WITH_EDITOR
74};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
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
Definition Actor.h:257
Definition LandscapeStreamingProxy.h:20
bool IsValidLandscapeActor(ALandscape *Landscape)
Definition NameTypes.h:617
Definition UObjectGlobals.h:1292
Definition PropertyPairsMap.h:13
Definition UnrealType.h:174
Definition Text.h:385
Definition Landscape.Build.cs:7
Definition Array.h:670
Definition MaterialInterface.h:296
Definition World.h:918
Definition UnrealType.h:6865
Definition LazyObjectPtr.h:230
Definition SoftObjectPtr.h:174