RealDocs

UKismetMathLibrary::Vector2D_One

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

Description

Returns the constant FVector2D (1, 1). Useful as a multiplicative identity or as a uniform scale factor of 1 in 2D operations.

Caveats & Gotchas

  • This is NOT a unit vector — its magnitude is sqrt(2) ≈ 1.414. Use Vector2D_Unit45Deg if you need a normalised diagonal vector.
  • Primarily useful in Blueprint where a literal (1,1) constant node is less ergonomic; in C++ prefer FVector2D::UnitVector or FVector2D(1.0, 1.0) directly.

Signature

static UE_INL_API FVector2D Vector2D_One();

Return Type

FVector2D

Example

Reset a 2D scale to identity C++
FVector2D Scale = UKismetMathLibrary::Vector2D_One();
// Scale == (1.0, 1.0)

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.