UKismetMathLibrary::LinearColor_Gray
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the linear-space gray color (0.5, 0.5, 0.5, 1). Exposed as a Blueprint script constant on FLinearColor.
Caveats & Gotchas
- • 0.5 in linear space appears perceptually lighter than 50% gray in sRGB; the sRGB equivalent of 50% perceived gray is approximately (0.214, 0.214, 0.214) in linear space.
- • The constant uses the name 'Gray' (American English) in C++ and Blueprint; the header comment says 'Grey' — both spellings refer to the same value.
Signature
static UE_INL_API FLinearColor LinearColor_Gray(); Return Type
FLinearColor Example
Use gray as a neutral UI tint C++
Widget->SetColorAndOpacity(UKismetMathLibrary::LinearColor_Gray()); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?