UKismetMathLibrary::Vector4_Zero
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the FVector4 zero constant (0, 0, 0, 0). Primarily exposed so Blueprint and Python scripts can access the constant without manual construction.
Caveats & Gotchas
- • In C++ prefer FVector4(ForceInitToZero) or FVector4(0,0,0,0) directly — the function call is unnecessary even if the compiler inlines it.
- • The header comment incorrectly reads '(0,0,0)'; all four components including W are zeroed.
Signature
static UE_INL_API FVector4 Vector4_Zero(); Return Type
FVector4 Example
Reset a Vector4 accumulator before summing C++
FVector4 Accumulator = UKismetMathLibrary::Vector4_Zero();
for (const FVector4& Sample : Samples)
Accumulator += Sample; Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?