FColor::InitFromString

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss