Vector Set() method VS new

I see in C# I can set values for a Vector3 in two ways:

vector.Set(1, 1, 1);


vector = new Vector3(1, 1, 1);

Is there any difference? Which is best?


There is no difference, the two snippets do the same thing. However, reusing existing objects is better, especially in loops because it’s expensive.