UKismetMathLibrary::LinearColor_Red
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the linear-space red color (1, 0, 0, 1). Commonly used for debug drawing and damage indicators.
Caveats & Gotchas
- • In HDR/linear rendering, (1,0,0) is not the same red as sRGB (255,0,0). If feeding into a texture sample that expects sRGB, the color will appear darker than expected.
- • These constant functions are intended for scripting convenience; in C++ prefer FLinearColor::Red.
Signature
static UE_INL_API FLinearColor LinearColor_Red(); Return Type
FLinearColor Example
Draw a debug sphere in red C++
DrawDebugSphere(
GetWorld(),
GetActorLocation(),
50.f, 12,
UKismetMathLibrary::LinearColor_Red().ToFColor(true),
false, 2.f
); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?