C# Expressions Denoting Types instead of Values...

Sorry fellas, noobie question. (I am converting myself from Java to C# and am trying to figure out all the little idiosyncrasies.)

When I put something like “Vector3(0, transform.rotation.y, 0)” into my code, it throws an error:

“error CS0119: Expression denotes a ‘type’, where a ‘variable’, ‘value’ or ‘method group’ was expected.”

How do I pull the value, not the type?

Thanks! (Sorry again for the simple question… I tried searching to -surprisingly- no avail.)

Yeah that’s a C# gotcha - you need a new Vector3 always in C# when you are creating one (and the same for any other struct/class).