RealDocs

UKismetMathLibrary::LinearColor_GetMin

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

Description

Returns the smallest channel value among R, G, B, and A in the given linear color.

Caveats & Gotchas

  • Alpha is included in the search — a fully transparent color (alpha=0) will always return 0 regardless of the RGB values, which can mask low-saturation detection.
  • For colors with negative channel values (valid in HDR pipelines), the result can be negative.

Signature

static UE_INL_API float LinearColor_GetMin(FLinearColor InColor);

Parameters

Name Type Description Default
InColor FLinearColor Color to inspect.

Return Type

float

Example

Check if a color has a dark channel C++
FLinearColor Color = FLinearColor(0.1f, 0.9f, 0.5f, 1.f);
float MinChannel = UKismetMathLibrary::LinearColor_GetMin(Color);
if (MinChannel < 0.2f)
{
    // At least one channel is very dark
}

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.