Changing the size of a plane using c++?

I can easily change the size of an object using blueprints however could somebody show me how to do it dynamically using c++? I’ve looked around and questions like this have been asked however they are all now updated and don’t work.

I think you just call the SetWorldScale3D() function.

UYourMesh.SetWorldScale3D(FVector NewScale);
UYourMesh.SetWorldScale3D(1.0, 1.0, 1.0);

Would something like this do? Check the blueprint name, they are the same names, as well as the same inputs.