RealDocs

UKismetMathLibrary::BMin

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

Description

Returns the smaller of two byte values. Equivalent to `FMath::Min` but Blueprint-exposed and typed for uint8.

Caveats & Gotchas

  • The 'B' prefix stands for Byte, not bool — do not confuse with boolean operations. In C++ you can call FMath::Min<uint8> directly for the same result.
  • If both values are equal, either value is returned (implementation picks A); do not rely on which operand is returned when values are equal.

Signature

static UE_INL_API uint8 BMin(uint8 A, uint8 B);

Parameters

Name Type Description Default
A uint8 First value.
B uint8 Second value.

Return Type

uint8

Example

Clamping a byte to a cap C++
uint8 SafeValue = UKismetMathLibrary::BMin(InputByte, MaxAllowed);

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.