I know I can write 3x single floats instead of the float3, can’t I write float 3? How do I specify the XYZ part? Sometimes it is RGB, how do I specify it?
You can use the notation: float3(x,y,z) to specify a constant float3 value. Also, xyz and rgb are interchangeable - they mean exactly the same thing semantically, but it allows the programmer to more easily see which values are colours and which are vectors.
It works for me just fine, as in the simple example below. There’s an error somewhere else in your code - if you post your complete shader and the error(s) reported by Unity it will be easier to diagnose…