FColor::InitFromString

Initialize this Color based on an [FString](API\Runtime\Core\Containers\FString).

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Color.h

Include

#include "Math/Color.h"

Syntax

bool InitFromString
(
    const FString & InSourceString
)

Remarks

Initialize this Color based on an FString. The String is expected to contain R=, G=, B=, A=. The FColor will be bogus when InitFromString returns false.

Returns

true if the R,G,B values were read successfully; false otherwise.

Parameters

Parameter

Description

InSourceString

FString containing the color values.