Vector3 assignment query..

Hi, can anyone advise me why I can’t do this:

inputThreshold = Vector3(0.0f,0.0f,0.0f);

…as it complains that “UnityEngine.Vector3 is a ‘type’ but is used like a variable”. But strangely I can do this:

inputThreshold = Vector3.zero;

…firstly dont understand why the first code snippet wouldnt work, but also then dont understand why the second would - I thought the second was shorthand for the first!?

Thanks!

its new Vector3(…) as with every other object creation in C#

and Vector3.zero is just a variable that leads to a precreated vector3

ah…of course - thanks (hits head against table)