UKismetMathLibrary::IntPoint_One
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Returns the FIntPoint constant (1, 1). Useful as a Blueprint literal for a unit-step grid offset or a one-based tile dimension.
Caveats & Gotchas
- • In C++ use FIntPoint(1, 1) or FIntPoint::UnitPoint directly; calling this function from C++ adds unnecessary indirection.
- • Blueprint exposes this as a ScriptConstant, so it appears as a constant value pin rather than a function node. If you need to modify the value, promote it to a variable first.
Signature
static UE_INL_API FIntPoint IntPoint_One(); Return Type
FIntPoint Example
Offset a grid tile position by one step in both axes C++
FIntPoint TilePos = FIntPoint(3, 5);
FIntPoint NextTile = TilePos + UKismetMathLibrary::IntPoint_One(); // returns FIntPoint(4, 6) See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?