UCameraComponent::SetPostProcessBlendWeight
#include "Camera/CameraComponent.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Sets how strongly this camera's PostProcessSettings are blended into the final view, from 0.0 (ignored) to 1.0 (fully applied).
Caveats & Gotchas
- • Only the overrides you've enabled within PostProcessSettings (via its bOverride_ flags) are affected by this weight — settings left un-overridden pass through unaffected.
- • Useful for smoothly fading a camera's post-process influence in or out over time, e.g. blending into a color-graded cutscene camera.
Signature
UFUNCTION(BlueprintCallable, Category = Camera)
void SetPostProcessBlendWeight(float InPostProcessBlendWeight) { PostProcessBlendWeight = InPostProcessBlendWeight; } Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InPostProcessBlendWeight | float | New blend weight, from 0.0 (no post-process influence) to 1.0 (fully applied). | — |
Return Type
void Example
Fade in post-process over time C++
float Alpha = FMath::Clamp(ElapsedTime / FadeDuration, 0.0f, 1.0f);
CameraComponent->SetPostProcessBlendWeight(Alpha); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?