This works for me.
Can you provide a little more code?
// Btw this is sufficient
add_vector.X = 100.f;
// or
add_vector.X = 100;
I’m trying to guess down below:
void AFoo::AddToVector(FVector add_vector)
{
// Do you have a class variable called add_vector? if so you need to do
this->add_vector.X...
// Instead you are interacting with the argument add_vector
// Like this
this->add_vector += add_vector;
}
// Or are you looking at add_vector in debug mode after it has been released
// example
...
if (true)
{
FVector add_vector;
add_vector.X = float(100);
add_vector.Y = float(100);
add_vector.Z = float(100);
}
bool bHere_Add_Vector_Will_Be_Invalid = true;
...