UKismetMathLibrary::Add_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Adds two 64-bit integers (A + B). The default value of B = 1 allows it to serve as an increment node in Blueprint.
Caveats & Gotchas
- • The default B = 1 is a Blueprint convenience — it makes the node act as an increment when only one input is wired. In C++ you should always pass both operands explicitly to avoid confusion.
- • int64 addition still wraps on overflow with two's complement; if you are accumulating very large values (e.g. total bytes transferred across a long session) verify you will not exceed INT64_MAX (~9.2 × 10^18).
Signature
static UE_INL_API int64 Add_Int64Int64(int64 A, int64 B = 1); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int64 | First addend. | — |
| B | int64 | Second addend. Defaults to 1 (increment by one). | 1 |
Return Type
int64 Example
Accumulate a total score across sessions C++
int64 UpdatedTotal = UKismetMathLibrary::Add_Int64Int64(LifetimeScore, SessionScore);
SaveGameData->LifetimeScore = UpdatedTotal; Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?