I can’t seem to get SetFloats to work. If I have 6 floats and update them one by one with SetFloat I will get my expected result but creating a float array and using SetFloats it appears that Connections[3] never gets updated to 1.
Seeing the same behaviour here on Unity 2020.1.5f1: SetFloats does not work when trying to use it with a float array in the compute shader. It’s easy to get around this by just using SetVectorArray and using the x component of a float4, but it feels a bit silly.
Tldr; I had the same issue with SetInts. It probably works as long as each of your CPU-side floats have 3 unused floats of padding following it, and it seems to be intentional to follow the HLSL constant buffer data layout rules, as the manual says: