UKismetMathLibrary::Multiply_VectorInt
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Scales a vector by an integer scalar. Convenience overload so Blueprint integer variables connect directly without a conversion node.
Caveats & Gotchas
- • Multiplying by 0 (integer zero) returns FVector::ZeroVector exactly; unlike float multiplication there is no epsilon ambiguity, so a zero integer input is a reliable way to clear a vector in one node.
- • For large integer multipliers, the resulting float components may lose precision relative to the true mathematical product due to IEEE 754 representation limits — this is relevant when working with very large world coordinates.
Signature
static UE_INL_API FVector Multiply_VectorInt(FVector A, int32 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FVector | The vector to scale. | — |
| B | int32 | Integer scalar applied to all components. | — |
Return Type
FVector Example
Scale a tile-step vector by a grid count C++
FVector TileStep = FVector(100.f, 0.f, 0.f);
int32 GridCount = 5;
FVector FinalOffset = UKismetMathLibrary::Multiply_VectorInt(TileStep, GridCount); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?