FColor::FromHex

Creates a color value from the given hexadecimal string.

Choose your operating system:

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