Navigation
API > API/Runtime > API/Runtime/Engine
A 2d texture that will be rendered always facing the camera.
| Name | UBillboardComponent |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/BillboardComponent.h |
| Include Path | #include "Components/BillboardComponent.h" |
Syntax
UCLASS (ClassGroup=Rendering, CollapseCategories,
HideCategories=(Object, Activation, "Components|Activation", Physics, Collision, Lighting, Mesh, PhysicsVolume),
EditInlineNew, Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UBillboardComponent : public UPrimitiveComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UBillboardComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBillboardComponent
(
const FObjectInitializer& ObjectInitializer |
Components/BillboardComponent.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| EditorScale | float | The scale we use when rendering in-editor | Components/BillboardComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsScreenSizeScaled | uint32 | Components/BillboardComponent.h |
|
|
| bShowLockedLocation | bool | Components/BillboardComponent.h | ||
| bUseInEditorScaling | bool | Whether to use in-editor arrow scaling (i.e. to be affected by the global arrow scale) | Components/BillboardComponent.h |
|
| OpacityMaskRefVal | float | The billboard is not rendered where texture opacity < OpacityMaskRefVal | Components/BillboardComponent.h |
|
| ScreenSize | float | Components/BillboardComponent.h |
|
|
| Sprite | TObjectPtr< class UTexture2D > | Components/BillboardComponent.h |
|
|
| SpriteInfo | FSpriteCategoryInfo | Sprite category information regarding the component | Components/BillboardComponent.h | |
| U | float | Components/BillboardComponent.h |
|
|
| UL | float | Components/BillboardComponent.h |
|
|
| V | float | Components/BillboardComponent.h |
|
|
| VL | float | Components/BillboardComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetOpacityMaskRefVal
(
float RefVal |
Changed the opacity masked used by this component | Components/BillboardComponent.h |
|
virtual void SetSprite
(
UTexture2D* NewSprite |
Change the sprite texture used by this component | Components/BillboardComponent.h |
|
virtual void SetSpriteAndUV
(
UTexture2D* NewSprite, |
Change the sprite texture and the UV's used by this component | Components/BillboardComponent.h |
|
virtual void SetUV
(
int32 NewU, |
Change the sprite's UVs | Components/BillboardComponent.h |
|
Overridden from UPrimitiveComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ComponentIsTouchingSelectionBox
(
const FBox& InSelBBox, |
Determines whether the supplied bounding box intersects with the component. | Components/BillboardComponent.h | |
virtual bool ComponentIsTouchingSelectionFrustum
(
const FConvexVolume& InFrustum, |
Determines whether the supplied frustum intersects with the component. | Components/BillboardComponent.h | |
virtual FPrimitiveSceneProxy * CreateSceneProxy() |
Creates a proxy to represent the primitive to the scene manager in the rendering thread. | Components/BillboardComponent.h | |
virtual bool IsShown
(
const FEngineShowFlags& ShowFlags |
Would this primitive be shown with these rendering flags. | Components/BillboardComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. | Components/BillboardComponent.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void SetEditorScale
(
float InEditorScale |
Set the scale that we use when rendering in-editor | Components/BillboardComponent.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SpriteCategoryName_DEPRECATED | FName | Sprite category that the component belongs to. Value serves as a key into the localization file. | Components/BillboardComponent.h |