RealDocs

UKismetMathLibrary::LinearColor_White

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

Description

Returns the linear-space white color (1, 1, 1, 1). Exposed as a Blueprint script constant on FLinearColor.

Caveats & Gotchas

  • FLinearColor::White is linear light (1,1,1) and will appear as bright white in HDR rendering. If you need the equivalent sRGB value for gamma-correct display, convert with FLinearColor::ToFColor(true).
  • These constant functions exist primarily for Blueprint and Python scripting; in C++ prefer the FLinearColor::White static member directly for clarity.

Signature

static UE_INL_API FLinearColor LinearColor_White();

Return Type

FLinearColor

Example

Set a dynamic material to white C++
UMaterialInstanceDynamic* MID = UMaterialInstanceDynamic::Create(BaseMaterial, this);
MID->SetVectorParameterValue(TEXT("Tint"), UKismetMathLibrary::LinearColor_White());

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.