Set list in shader (uniform)

There is a way to set a list for uniform? Something similar to “material.SetFloatArray” but with list? Or the restriction is for arrays? Also there is possible to change the array during runtime in shaders?

If I understand you correctly, you want to take the contents of a C# List object and make it available in some way to a shader.

The short answer is no. List is a C# construct. To do that you would have to do:

material.SetFloatArray("myarray", myList.ToArray());

And that List also needs to contain just float values.

As far as changing it during runtime; yes you can. You just need to call the above method whenever you want that value to be different in the shader. It will be on a frame by frame basis though of course.