RealDocs

UCameraComponent::AddOrUpdateBlendable

function Engine Blueprint Since unknown
#include "Camera/CameraComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Adds a blendable object (implementing IBlendableInterface) to this camera's post-process settings, or updates its weight if it's already present.

Caveats & Gotchas

  • Thin wrapper around FPostProcessSettings::AddBlendable — the blendable is added to this camera's own PostProcessSettings, not applied globally.
  • Passing the same blendable object again updates its weight in place rather than adding a duplicate entry.

Signature

UFUNCTION(BlueprintCallable, Category = "Rendering")
void AddOrUpdateBlendable(TScriptInterface<IBlendableInterface> InBlendableObject, float InWeight = 1.0f) { PostProcessSettings.AddBlendable(InBlendableObject, InWeight); }

Parameters

Name Type Description Default
InBlendableObject TScriptInterface<IBlendableInterface> The blendable object (e.g. a post-process material instance) to add or update.
InWeight float Blend weight for this blendable, from 0.0 to 1.0. 1.0f

Return Type

void

Example

Add a post-process material instance C++
UMaterialInstanceDynamic* MID = UMaterialInstanceDynamic::Create(BlendableMaterial, this);
CameraComponent->AddOrUpdateBlendable(MID, 1.0f);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.