RealDocs

UKismetMathLibrary::Multiply_LinearColorLinearColor

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Multiplies two linear colors channel-by-channel. Equivalent to a "Multiply" blend mode — useful for tinting or masking one color with another.

Caveats & Gotchas

  • Multiplying by a color with channel values above 1.0 (HDR) will brighten the result beyond the normal range — this is intentional in HDR workflows but may surprise in LDR contexts.
  • Alpha is multiplied too; multiplying two fully opaque colors (A=1) keeps alpha at 1, but multiplying by a semi-transparent color reduces effective opacity.

Signature

static UE_INL_API FLinearColor Multiply_LinearColorLinearColor(FLinearColor A, FLinearColor B);

Parameters

Name Type Description Default
A FLinearColor First color.
B FLinearColor Second color (acts as a per-channel multiplier).

Return Type

FLinearColor

Example

Tint a base color with a mask color C++
FLinearColor Base = FLinearColor::White;
FLinearColor Tint = FLinearColor(1.f, 0.5f, 0.5f, 1.f); // warm tint
FLinearColor Result = UKismetMathLibrary::Multiply_LinearColorLinearColor(Base, Tint);
// Result = (1.0, 0.5, 0.5, 1.0)

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.