Hex To Linear Color

Pure
HexToLinearColor

Converts a hex color string to FLinearColor. Supports with/without '#' and 6 or 8 character formats.

Type: Pure (no side effects)
Category: Fortuna|Color & Visual
Keywords: color & visual

Inputs

NameTypeDefaultDescription
HexStringFStringHexString parameter

Outputs

NameTypeDescription
ReturnValueFLinearColorReturnValue output
bValidboolbValid output

Example Use Cases

Example 1

Load color themes from a config file.

Example 2

Parse designer-specified colors from a spreadsheet.