FColor::FromHex

Creates a color value from the given hexadecimal string.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Color.h"

Source

/Engine/Source/Runtime/Core/Private/Math/Color.cpp

Syntax

static FColor FromHex
(
    const FString & HexString
)

Remarks

Creates a color value from the given hexadecimal string.

Supported formats are: RGB, RRGGBB, RRGGBBAA, RGB, #RRGGBB, #RRGGBBAA

Returns

The corresponding color value.

Parameters

Parameter

Description

HexString

The hexadecimal string.

See Also

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