RealDocs

UKismetMathLibrary::LinearColor_Black

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns the linear-space black color (0, 0, 0, 1). Exposed as a Blueprint script constant on FLinearColor.

Caveats & Gotchas

  • This is opaque black (alpha = 1). If you need transparent black (alpha = 0), use LinearColor_Transparent instead.
  • Setting a material emissive parameter to black effectively disables emission, but the parameter still exists in memory; use a scalar multiplier of 0 to disable emission more efficiently in some material graphs.

Signature

static UE_INL_API FLinearColor LinearColor_Black();

Return Type

FLinearColor

Example

Fade a widget to black C++
FLinearColor Black = UKismetMathLibrary::LinearColor_Black();
Widget->SetColorAndOpacity(Black);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.