RealDocs

UKismetStringLibrary::Conv_ColorToString

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

Description

Converts a linear color to a string in the form '(R=,G=,B=,A=)'. Commonly used to log or display color values while debugging materials and UI.

Caveats & Gotchas

  • FLinearColor stores components in linear space, not the gamma-corrected sRGB values shown in most color pickers, so the printed numbers won't match what you see in an editor swatch.
  • There is no companion validity flag on this node — round-tripping through Conv_StringToColor assumes the exact '(R=,G=,B=,A=)' format is preserved unmodified.

Signature

static FString Conv_ColorToString(FLinearColor InColor)

Parameters

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

Return Type

FString

Example

Log a material's tint color C++
FLinearColor TintColor(0.2f, 0.4f, 0.8f, 1.0f);
FString ColorText = UKismetStringLibrary::Conv_ColorToString(TintColor);
// ColorText == "(R=0.200000,G=0.400000,B=0.800000,A=1.000000)"

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.