I want to pass a variable to the FColor(r,g,b,a) function.
Something like this:
FVector4 MyColor = FVector4(150,150,150,50);
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor(MyColor), TEXT("Hello."));
Which does not work. What is the proper way to declare MyColor?
EDIT:
For anyone wondering, through the guidance of the answer below I got it to work as I want it with:
FColor MyColor = FColor(150,150,150,50);
GEngine->AddOnScreenDebugMessage(-1, 5.0f, MyColor, TEXT("Hello."));
(The 150.0/255.0 normalization is not needed since the function wants a value between 0 and 255.)