How to get a float velocity value from the magnitude of an FVector?

I’m trying to get the magnitude of a Velocity FVector but I have no idea of how to ‘deconstruct’ the FVector into magnitude so to speak. This is my current, obviously not working, code bit for my attempt:

AtwinStickPawn::OldSpeed = RootComponent->GetComponentVelocity();


Ohh I just stumbled on FVector.GetSize() is this the correct way?

FVector::Size() is what you wanted.

FVector Temp(100.0f, 0.0f, 10.0f);
float Magnitude = Temp.Size();

Good to know, thank you!