![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 FBoxSphereBounds & | GetBounds () const |
Public Attributes | |
| const USceneComponent * | Component |
| UMaterialInterface * | DecalMaterial |
| FTransform | ComponentTrans |
| int32 | SortOrder |
| float | InvFadeDuration |
| float | InvFadeInDuration |
| float | FadeStartDelayNormalized |
| float | FadeInStartDelayNormalized |
| float | FadeScreenSize |
| FLinearColor | DecalColor = FLinearColor::White |
Encapsulates the data which is used to render a decal parallel to the game thread.
| FDeferredDecalProxy::FDeferredDecalProxy | ( | const UDecalComponent * | InComponent | ) |
constructor
| FDeferredDecalProxy::FDeferredDecalProxy | ( | const USceneComponent * | InComponent, |
| UMaterialInterface * | InMaterial | ||
| ) |
| ENGINE_API FDeferredDecalProxy::FDeferredDecalProxy | ( | const struct FDeferredDecalSceneProxyDesc & | Desc | ) |
|
inline |
| void FDeferredDecalProxy::InitializeFadingParameters | ( | float | AbsSpawnTime, |
| float | FadeDuration, | ||
| float | FadeStartDelay, | ||
| float | FadeInDuration, | ||
| float | FadeInStartDelay | ||
| ) |
| bool FDeferredDecalProxy::IsShown | ( | const FSceneView * | View | ) | const |
| void FDeferredDecalProxy::SetTransformIncludingDecalSize | ( | const FTransform & | InComponentToWorldIncludingDecalSize, |
| const FBoxSphereBounds & | InBounds | ||
| ) |
Updates the decal proxy's cached transform and bounds.
| InComponentToWorldIncludingDecalSize | - The new component-to-world transform including the DecalSize |
| InBounds | - The new world-space bounds including the DecalSize |
| const USceneComponent* FDeferredDecalProxy::Component |
Pointer back to the game thread owner component.
| FTransform FDeferredDecalProxy::ComponentTrans |
Used to compute the projection matrix on the render thread side, includes the DecalSize
| FLinearColor FDeferredDecalProxy::DecalColor = FLinearColor::White |
| UMaterialInterface* FDeferredDecalProxy::DecalMaterial |
| float FDeferredDecalProxy::FadeInStartDelayNormalized |
| float FDeferredDecalProxy::FadeScreenSize |
| float FDeferredDecalProxy::FadeStartDelayNormalized |
FadeT = saturate(1 - (AbsTime - FadeStartDelay - AbsSpawnTime) / FadeDuration)
refactored as muladd: FadeT = saturate((AbsTime * -InvFadeDuration) + ((FadeStartDelay + AbsSpawnTime + FadeDuration) * InvFadeDuration))
| float FDeferredDecalProxy::InvFadeDuration |
| float FDeferredDecalProxy::InvFadeInDuration |
| int32 FDeferredDecalProxy::SortOrder |
Larger values draw later (on top).