Converting Hex String to FLinearColor

Continuing the discussion from Hex code to RGB:

You probably have just copied code from ChatGPT and haven’t even looked at the definition of InitFromString before posting it…

The correct approach to get a FLinearColor from a FString is using the existing function that converts FString to FColor and then FColor to FLinearColor:

FLinearColor HexToLinearColor(const FString& HexString)
{
    // Use existing FromHex
    const FColor Color = FColor::FromHex(HexString);
    
    // Convert to linear color (0–1 range)
    return FLinearColor(Color);
}