RealDocs

UKismetTextLibrary::Conv_ColorToText

function Engine Blueprint Since unknown
#include "Kismet/KismetTextLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Converts a linear color to localized, formatted text in the form '(R=,G=,B=,A=)'. Backs the 'To Text (LinearColor)' Blueprint conversion node.

Caveats & Gotchas

  • Takes an FLinearColor, not FColor — if you're working with an 8-bit FColor you need to convert it first (Blueprint does this implicitly; C++ requires an explicit FLinearColor(Color) construction).
  • Component values print in the 0–1 linear range, not 0–255, which can be confusing when cross-referencing against sRGB color pickers.

Signature

static FText Conv_ColorToText(FLinearColor InColor)

Parameters

Name Type Description Default
InColor FLinearColor The linear color value to convert.

Return Type

FText

Example

Log a material parameter color C++
FLinearColor Tint = FLinearColor::Red;
FText ColorText = UKismetTextLibrary::Conv_ColorToText(Tint);
UE_LOG(LogTemp, Log, TEXT("%s"), *ColorText.ToString());

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.