UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeSplineActor.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"
9#include "LandscapeSplineActor.generated.h"
10
11class ALandscape;
12
13UCLASS(MinimalAPI, NotBlueprintable, NotPlaceable, hidecategories = (Display, Attachment, Physics, Debug, Lighting, Input))
15{
17
18protected:
20 UPROPERTY()
21 FGuid LandscapeGuid;
22
23#if WITH_EDITORONLY_DATA
25 UPROPERTY(EditAnywhere, Category = "Target Landscape")
26 TObjectPtr<ALandscape> LandscapeActor;
27#endif
28
29public:
30 virtual FGuid GetLandscapeGuid() const override { return LandscapeGuid; }
31 virtual ULandscapeSplinesComponent* GetSplinesComponent() const override;
32 virtual FTransform LandscapeActorToWorld() const override;
33 virtual ULandscapeInfo* GetLandscapeInfo() const override;
34 virtual void UpdateSharedProperties(ULandscapeInfo* InLandscapeInfo) override;
35 virtual bool IsSplineOwnerValid() const override;
36
37#if WITH_EDITOR
40 void SetLandscapeGuid(const FGuid& InGuid);
41 virtual void GetActorDescProperties(FPropertyPairsMap& PropertyPairsMap) const override;
42
44
45 virtual void Destroyed() override;
46 virtual void PostRegisterAllComponents() override;
47 virtual void UnregisterAllComponents(bool bForReregister = false) override;
48 virtual void PostEditMove(bool bFinished) override;
49 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
50 virtual bool EditorCanAttachTo(const AActor* InParent, FText& OutReason) const override { return false; }
51 virtual AActor* GetSceneOutlinerParent() const;
52 virtual bool SupportsForeignSplineMesh() const override { return false; }
53
54 // Interface existes for backward compatibility. Should already be created since its this actor's root component.
55 virtual void CreateSplineComponent() override { check(false); }
56 virtual void CreateSplineComponent(const FVector& Scale3D) override { check(false); }
57
58private:
59 LANDSCAPE_API void SetLandscapeActor(ALandscape* InLandscapeActor);
61#endif
62};
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
DIRECTLINK_API Display
Definition DirectLinkLog.h:8
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
Definition LandscapeSplineActor.h:15
virtual FGuid GetLandscapeGuid() const override
Definition LandscapeSplineActor.h:30
Definition PropertyPairsMap.h:13
Definition Text.h:385
Definition ILandscapeSplineInterface.h:20
Definition LandscapeInfo.h:109
Definition LandscapeSplinesComponent.h:103
Definition Guid.h:109
Definition UnrealType.h:6865
Definition ObjectPtr.h:488