UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BillboardComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
9#include "BillboardComponent.generated.h"
10
12struct FConvexVolume;
13struct FEngineShowFlags;
14
18UCLASS(ClassGroup=Rendering, collapsecategories, hidecategories=(Object,Activation,"Components|Activation",Physics,Collision,Lighting,Mesh,PhysicsVolume), editinlinenew, meta=(BlueprintSpawnableComponent), MinimalAPI)
19class UBillboardComponent : public UPrimitiveComponent
20{
22
23 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
25
26 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
27 uint32 bIsScreenSizeScaled:1;
28
29 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
30 float ScreenSize;
31
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
33 float U;
34
35 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
36 float UL;
37
38 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
39 float V;
40
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
42 float VL;
43
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, AdvancedDisplay, Category=Sprite)
46 float OpacityMaskRefVal;
47
48#if WITH_EDITORONLY_DATA
50 UPROPERTY()
52
54 UPROPERTY()
56
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Sprite)
60
61 UPROPERTY()
63#endif // WITH_EDITORONLY_DATA
65 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Sprite")
66 ENGINE_API virtual void SetSprite(class UTexture2D* NewSprite);
67
69 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Sprite")
71
73 UFUNCTION(BlueprintCallable, Category="Rendering|Components|Sprite")
75
77 UFUNCTION(BlueprintCallable, Category = "Rendering|Components|Sprite")
79
80 //~ Begin UPrimitiveComponent Interface
82 ENGINE_API virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
83
84 ENGINE_API virtual bool IsShown(const FEngineShowFlags& ShowFlags) const override;
85#if WITH_EDITOR
86 ENGINE_API virtual bool ComponentIsTouchingSelectionBox(const FBox& InSelBBox, const bool bConsiderOnlyBSP, const bool bMustEncompassEntireComponent) const override;
88#endif
89 //~ End UPrimitiveComponent Interface
90
91#if WITH_EDITORONLY_DATA
93 static ENGINE_API void SetEditorScale(float InEditorScale);
94
96 static ENGINE_API float EditorScale;
97#endif
98};
99
100
101
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 UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition PrimitiveSceneProxy.h:296
Definition Texture2D.h:26
Definition ConvexVolume.h:44
Definition ShowFlags.h:56
Definition PrimitiveComponent.h:84
Definition ObjectPtr.h:488
Definition BoxSphereBounds.h:25