FDefaultValueHelper::ParseLinearColor

Converts a string into a [FLinearColor](API\Runtime\Core\Math\FLinearColor).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/DefaultValueHelper.h

Include

#include "Misc/DefaultValueHelper.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/DefaultValueHelper.cpp

Syntax

static bool ParseLinearColor
(
    const FString & Source,
    FLinearColor & OutVal
)

Remarks

Converts a string into a FLinearColor. Accepted forms: " %f, %f, %f " or " %f, %f, %f, %f " (alpha is optional).

Returns

true if the conversion happened, false otherwise

Parameters

Parameter

Description

Source

the input string to try to convert

OutVal

the output color

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