RealDocs

UKismetStringLibrary::BuildString_Color

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

Description

Builds a new string in the form AppendTo+Prefix+InColor+Suffix, formatting the color between the given prefix and suffix.

Caveats & Gotchas

  • The color always renders in the fixed '(R=,G=,B=,A=)' layout with no control over decimal precision.
  • Takes an FLinearColor, not an FColor, so sRGB byte colors are implicitly converted to linear space before formatting.

Signature

static FString BuildString_Color(const FString& AppendTo, const FString& Prefix, FLinearColor InColor, const FString& Suffix)

Parameters

Name Type Description Default
AppendTo const FString& An existing string to use as the start of the result.
Prefix const FString& A string inserted after AppendTo and before the formatted value.
InColor FLinearColor The linear color value to format and insert, using the standard ToString conversion.
Suffix const FString& A string appended to the end of the result.

Return Type

FString

Example

Log a material parameter color C++
FString ColorText = UKismetStringLibrary::BuildString_Color(TEXT(""), TEXT("Tint: "), TintColor, TEXT(""));

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.