UMaterialBillboardComponent

A 2d material that will be rendered always facing the camera.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public variable

TArray< FMateri...

 

Elements

Current array of material billboard elements

Constructors

Name Description

Public function

UMaterialBillboardComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AddElement

(
    UMaterialInterface* Material,
    UCurveFloat* DistanceToOpacity...,
    bool bSizeIsInScreenSpace,
    float BaseSizeX,
    float BaseSizeY,
    UCurveFloat* DistanceToSizeCur...
)

Adds an element to the sprite.

Public function

void

 

SetElements

(
    const TArray< FMaterialSpriteElemen...
)

Set all elements of this material billboard component

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

FPrimitiveSc...

 

CreateSceneProxy()

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

Public function Virtual Const

UMaterialInt...

 

GetMaterial

(
    int32 ElementIndex
)

Returns the material used by the element at the specified index

Public function Virtual Const

void

 

GetUsedMaterials

(
    TArray< UMaterialInterface* > ...,
    bool bGetDebugMaterials
)

Retrieves the materials used in this component

Public function Virtual

void

 

SetMaterial

(
    int32 ElementIndex,
    UMaterialInterface* Material
)

Changes the material applied to an element of the mesh.

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo...

 

CalcBounds

(
    const FTransform& LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback