{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Min (Int) in Unreal Engine 5 C++

The Blueprint Min (Int) node maps to UKismetMathLibrary::Min(A, B) in C++, returning the smaller of two int32 values.

Blueprint node & C++ equivalent

Min (Int) Blueprint node and its C++ equivalent in Unreal Engine 5
The “Min (Int)” Blueprint node.
C++
#include "Kismet/KismetMathLibrary.h"

int32 A;
int32 B;

int32 Min = UKismetMathLibrary::Min(A, B);

What does the Min (Int) node do?

The Min (Int) node compares two integers and returns whichever is smaller. In C++ this is UKismetMathLibrary::Min(A, B), which takes two int32 arguments and returns an int32. It is the integer counterpart of the float-based FMin used for Min (Float).

The C++ equivalent

Include Kismet/KismetMathLibrary.h, then call int32 Min = UKismetMathLibrary::Min(A, B);. You can also use the engine's templated FMath::Min(A, B) which works for any comparable type, but UKismetMathLibrary::Min matches the Blueprint node name exactly and is dedicated to int32.

Frequently asked questions

What is the C++ equivalent of the Min Int node in UE5?+

It is UKismetMathLibrary::Min(A, B) from Kismet/KismetMathLibrary.h, which returns the smaller of two int32 values.

Can I use FMath::Min instead for integers?+

Yes. FMath::Min(A, B) is a template that works on int32 and returns the same result; UKismetMathLibrary::Min simply mirrors the Blueprint node.

Related Math nodes

View all Math nodes →