UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDeferredDecalProxy Class Reference

#include <DeferredDecalProxy.h>

Public Member Functions

ENGINE_API FDeferredDecalProxy (const UDecalComponent *InComponent)
 
ENGINE_API FDeferredDecalProxy (const USceneComponent *InComponent, UMaterialInterface *InMaterial)
 
ENGINE_API FDeferredDecalProxy (const struct FDeferredDecalSceneProxyDesc &Desc)
 
ENGINE_API void SetTransformIncludingDecalSize (const FTransform &InComponentToWorldIncludingDecalSize, const FBoxSphereBounds &InBounds)
 
ENGINE_API void InitializeFadingParameters (float AbsSpawnTime, float FadeDuration, float FadeStartDelay, float FadeInDuration, float FadeInStartDelay)
 
ENGINE_API bool IsShown (const FSceneView *View) const
 
const FBoxSphereBoundsGetBounds () const
 

Public Attributes

const USceneComponent * Component
 
UMaterialInterfaceDecalMaterial
 
FTransform ComponentTrans
 
int32 SortOrder
 
float InvFadeDuration
 
float InvFadeInDuration
 
float FadeStartDelayNormalized
 
float FadeInStartDelayNormalized
 
float FadeScreenSize
 
FLinearColor DecalColor = FLinearColor::White
 

Detailed Description

Encapsulates the data which is used to render a decal parallel to the game thread.

Constructor & Destructor Documentation

◆ FDeferredDecalProxy() [1/3]

FDeferredDecalProxy::FDeferredDecalProxy ( const UDecalComponent InComponent)

constructor

◆ FDeferredDecalProxy() [2/3]

FDeferredDecalProxy::FDeferredDecalProxy ( const USceneComponent *  InComponent,
UMaterialInterface InMaterial 
)

◆ FDeferredDecalProxy() [3/3]

ENGINE_API FDeferredDecalProxy::FDeferredDecalProxy ( const struct FDeferredDecalSceneProxyDesc Desc)

Member Function Documentation

◆ GetBounds()

const FBoxSphereBounds & FDeferredDecalProxy::GetBounds ( ) const
inline

◆ InitializeFadingParameters()

void FDeferredDecalProxy::InitializeFadingParameters ( float  AbsSpawnTime,
float  FadeDuration,
float  FadeStartDelay,
float  FadeInDuration,
float  FadeInStartDelay 
)

◆ IsShown()

bool FDeferredDecalProxy::IsShown ( const FSceneView View) const
Returns
True if the decal is visible in the given view.

◆ SetTransformIncludingDecalSize()

void FDeferredDecalProxy::SetTransformIncludingDecalSize ( const FTransform InComponentToWorldIncludingDecalSize,
const FBoxSphereBounds InBounds 
)

Updates the decal proxy's cached transform and bounds.

Parameters
InComponentToWorldIncludingDecalSize- The new component-to-world transform including the DecalSize
InBounds- The new world-space bounds including the DecalSize

Member Data Documentation

◆ Component

const USceneComponent* FDeferredDecalProxy::Component

Pointer back to the game thread owner component.

◆ ComponentTrans

FTransform FDeferredDecalProxy::ComponentTrans

Used to compute the projection matrix on the render thread side, includes the DecalSize

◆ DecalColor

FLinearColor FDeferredDecalProxy::DecalColor = FLinearColor::White

◆ DecalMaterial

UMaterialInterface* FDeferredDecalProxy::DecalMaterial

◆ FadeInStartDelayNormalized

float FDeferredDecalProxy::FadeInStartDelayNormalized

◆ FadeScreenSize

float FDeferredDecalProxy::FadeScreenSize

◆ FadeStartDelayNormalized

float FDeferredDecalProxy::FadeStartDelayNormalized

FadeT = saturate(1 - (AbsTime - FadeStartDelay - AbsSpawnTime) / FadeDuration)

refactored as muladd:
FadeT = saturate((AbsTime * -InvFadeDuration) + ((FadeStartDelay + AbsSpawnTime + FadeDuration) * InvFadeDuration))

◆ InvFadeDuration

float FDeferredDecalProxy::InvFadeDuration

◆ InvFadeInDuration

float FDeferredDecalProxy::InvFadeInDuration

◆ SortOrder

int32 FDeferredDecalProxy::SortOrder

Larger values draw later (on top).


The documentation for this class was generated from the following files: