Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UMaterialBillboardComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/MaterialBillboardComponent.h |
| Include | #include "Components/MaterialBillboardComponent.h" |
Syntax
class UMaterialBillboardComponent : public UPrimitiveComponent
Remarks
A 2d material that will be rendered always facing the camera.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FMaterialSpriteElement > | Elements | Current array of material billboard elements |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialBillboardComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddElement
(
UMaterialInterface* Material, |
Adds an element to the sprite. | |
| void | SetElements
(
const TArray< FMaterialSpriteElement >& NewElements |
Set all elements of this material billboard component |
Overridden from UPrimitiveComponent
| Type | Name | Description | |
|---|---|---|---|
| FPrimitiveSceneProxy * | Creates a proxy to represent the primitive to the scene manager in the rendering thread. | ||
| UMaterialInterface * | GetMaterial
(
int32 ElementIndex |
Returns the material used by the element at the specified index | |
| void | GetUsedMaterials
(
TArray< UMaterialInterface* >& OutMaterials, |
Retrieves the materials used in this component | |
| void | SetMaterial
(
int32 ElementIndex, |
Changes the material applied to an element of the mesh. |
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. | |
| bool | GetMaterialPropertyPath
(
int32 ElementIndex, |
Returns full material property path and UObject owner property object Path examples: Material property path with array element and inner struct Materials[0].InnerStruct.Material Material property path with array element Materials[0] Simple material property path Materials |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |