UKismetMathLibrary::Vector_One
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the vector constant (1, 1, 1). Useful as a uniform scale value or as a starting point for per-axis multipliers.
Caveats & Gotchas
- • This is an all-ones vector, not a unit-direction vector. Its magnitude is sqrt(3) (~1.732). Do not treat it as a normalized direction.
- • In Blueprint, this appears as the 'One' constant pin via the ScriptConstant metadata rather than a separate callable node.
Signature
static UE_INL_API FVector Vector_One(); Return Type
FVector Example
Use as uniform scale C++
FVector Scale = UKismetMathLibrary::Vector_One() * 2.0;
Actor->SetActorScale3D(Scale); // sets scale to (2,2,2) Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?