UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DecalActor.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"
8#include "DecalActor.generated.h"
9
10class UArrowComponent;
12class UBoxComponent;
13class UDecalComponent;
14
21UCLASS(hideCategories=(Collision, Attachment, Actor, Input, Replication), showCategories=("Input|MouseInput", "Input|TouchInput"), ComponentWrapperClass, MinimalAPI)
22class ADecalActor
23 : public AActor
24{
26
29 UPROPERTY(Category = Decal, VisibleAnywhere, BlueprintReadOnly, meta = (ExposeFunctionCategories = "Decal,Rendering|Components|Decal", AllowPrivateAccess = "true"))
31
32#if WITH_EDITORONLY_DATA
33 /* Reference to the editor only arrow visualization component */
34 UPROPERTY()
36
37 /* Reference to the billboard component */
38 UPROPERTY()
39 TObjectPtr<UBillboardComponent> SpriteComponent;
40
41 // formerly we used this component to draw a box, now we use the DecalComponentVisualizer
42 UPROPERTY()
44#endif
45
46public:
47
48 // BEGIN DEPRECATED (use component functions now in level script)
49 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Decal", meta=(DeprecatedFunction))
51 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Decal", meta=(DeprecatedFunction))
53 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Decal", meta=(DeprecatedFunction))
54 ENGINE_API virtual class UMaterialInstanceDynamic* CreateDynamicMaterialInstance();
55 // END DEPRECATED
56
57
58#if WITH_EDITOR
59 //~ Begin UObject Interface
60 ENGINE_API virtual void PostEditMove(bool bFinished) override;
61 ENGINE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
62 //~ End UObject Interface
63
64 //~ Begin AActor Interface.
65 ENGINE_API virtual void EditorApplyScale(const FVector& DeltaScale, const FVector* PivotLocation, bool bAltDown, bool bShiftDown, bool bCtrlDown) override;
66 ENGINE_API virtual bool GetReferencedContentObjects(TArray<UObject*>& Objects) const override;
67 //~ End AActor Interface.
68#endif // WITH_EDITOR
69
70
71 ENGINE_API virtual void Serialize(FArchive& Ar) override;
72 ENGINE_API virtual void PostLoad() override;
73
74public:
75
77 UDecalComponent* GetDecal() const { return Decal; }
78#if WITH_EDITORONLY_DATA
82 UBillboardComponent* GetSpriteComponent() const { return SpriteComponent; }
83#endif
84};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
virtual ENGINE_API void PostLoad() override
Definition Actor.cpp:1103
Definition Archive.h:1208
Definition Array.h:670
Definition MaterialInstanceDynamic.h:15
Definition MaterialInterface.h:296
Definition UnrealType.h:6865
Definition ObjectPtr.h:488