UKismetSystemLibrary::MakeLiteralInt
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Returns the integer passed in unchanged. Backs Blueprint's literal integer node, letting a constant value be wired into an int pin.
Caveats & Gotchas
- • Pure pass-through with no side effects — calling it from C++ is never useful, since you could just use the literal value directly.
- • Exists purely so the Blueprint compiler has a node to represent an integer constant; the implementation is a one-line inline return.
Signature
static int32 MakeLiteralInt(int32 Value) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Value | int32 | Value the literal integer node should return. | — |
Return Type
int32 Example
Literal pass-through C++
int32 Value = UKismetSystemLibrary::MakeLiteralInt(42); // returns 42 Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?