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