RealDocs

UKismetMathLibrary::Conv_IntToIntVector

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Broadcasts a single integer to all three components of an FIntVector, producing (InInt, InInt, InInt).

Caveats & Gotchas

  • All three components receive the same value — this is a broadcast, not a selective assignment. If you want to set only one axis, construct the FIntVector directly: FIntVector(InInt, 0, 0).
  • As a BlueprintAutocast this conversion fires silently when an Integer pin is connected to an IntVector pin. The broadcast behaviour can be surprising if you expect only the X component to be set.

Signature

static UE_INL_API FIntVector Conv_IntToIntVector(int32 InInt)

Parameters

Name Type Description Default
InInt int32 The integer value to broadcast to all three components.

Return Type

FIntVector

Example

Creating a uniform chunk size C++
int32 ChunkSize = 32;
FIntVector ChunkDimensions = UKismetMathLibrary::Conv_IntToIntVector(ChunkSize);
// ChunkDimensions == FIntVector(32, 32, 32)

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.