| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/DecalComponent.h |
Include |
#include "Components/DecalComponent.h" |
class UDecalComponent : public USceneComponent
A material that is rendered onto the surface of a mesh. A kind of 'bumper sticker' for a model.
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bDestroyOwnerAfterFade |
Automatically destroys the owning actor after fully fading out. |
|
DecalColor |
Decal color, can be accessed using the material Decal Color node. |
|
|
TObjectPtr< cla... |
DecalMaterial |
Decal material. |
|
FVector |
DecalSize |
Decal size in local space (does not include the component scale), technically redundant but there for convenience |
|
float |
FadeDuration |
Time in seconds for the decal to fade out. |
|
float |
FadeInDuration |
|
|
float |
FadeInStartDelay |
|
|
float |
FadeScreenSize |
|
|
float |
FadeStartDelay |
Time in seconds to wait before beginning to fade out the decal. |
|
SceneProxy |
The decal proxy. |
|
|
int32 |
SortOrder |
Controls the order in which decal elements are rendered. |
|
TimerHandle_DestroyDecalComponent |
Handle for efficient management of DestroyDecalComponent timer |
Name | Description | |
---|---|---|
|
UDecalComponent ( |
Name | Description | ||
---|---|---|---|
|
UMaterialIns... |
CreateDynamicMaterialInstance() |
Utility to allocate a new Dynamic Material Instance, set its parent to the currently applied material, and assign it |
|
FDeferredDec... |
CreateSceneProxy() |
|
|
UMaterialInt... |
GetDecalMaterial() |
Accessor for decal material |
|
float |
GetFadeDuration() |
|
|
float |
GetFadeInDuration() |
|
|
float |
GetFadeInStartDelay() |
|
|
float |
GetFadeStartDelay() |
|
|
UMaterialInt... |
GetMaterial ( |
|
|
int32 |
GetNumMaterials() |
|
|
FTransform |
GetTransformIncludingDecalSize() |
|
|
void |
GetUsedMaterials ( |
Retrieves the materials used in this component |
|
void |
LifeSpanCallback() |
Called when the life span of the decal has been exceeded |
|
void |
PushSelectionToProxy() |
Pushes new selection state to the render thread primitive proxy |
|
void |
SetDecalColor ( |
Sets the decal color. |
|
void |
SetDecalMaterial ( |
Setting decal material on decal component. This will force the decal to reattach |
|
void |
SetFadeIn ( |
|
|
void |
SetFadeOut ( |
Sets the decal's fade start time, duration and if the owning actor should be destroyed after the decal is fully faded out. |
|
void |
SetFadeScreenSize ( |
Set the FadeScreenSize for this decal component |
|
void |
SetLifeSpan ( |
|
|
void |
SetMaterial ( |
|
|
void |
SetSortOrder ( |
Sets the sort order for the decal component. |
Name | Description | ||
---|---|---|---|
|
FBoxSphereBo... |
CalcBounds ( |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
|
bool |
GetMaterialPropertyPath |
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 |
Name | Description | ||
---|---|---|---|
|
const UObjec... |
AdditionalStatObject() |
Give a readable name for this component, including asset name if applicable |
|
void |
BeginPlay() |
Begins Play for the component. |
|
void |
CreateRenderState_Concurrent ( |
Used to create any rendering thread information for this component |
|
void |
DestroyRenderState_Concurrent() |
Used to shut down any rendering thread structure for this component |
|
void |
SendRenderTransform_Concurrent() |
Called to send a transform update for this component to the rendering thread |
Name | Description | ||
---|---|---|---|
|
bool |
IsPostLoadThreadSafe() |
Called during async load to determine if PostLoad can be called on the loading thread. |
|
void |
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |