FColor::FColor

Please use .ToFColor(true) on [FLinearColor](API\Runtime\Core\Math\FLinearColor) if you wish to convert from [FLinearColor](API\Runtime\Core\Math\FLinearColor) to [FColor](API\Runtime\Core\Math\FColor), with proper sRGB conversion applied.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Color.h"

Syntax

FColor
(
    const FLinearColor & LinearColor
)

Remarks

Please use .ToFColor(true) on FLinearColor if you wish to convert from FLinearColor to FColor, with proper sRGB conversion applied.

Do not implement or make public. We don't want people needlessly and implicitly converting between FLinearColor and FColor. It's not a free conversion.

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