Hello, I am new to Unity. I was wondering if in general is a good practice to favor arrays over lists. So in situations where both would do the job, use always arrays. Thank you
Besides the points listed in the link (I beat you by a couple of seconds ) there are so many other things in video games that are orders of magnitude bigger in consuming cycles than variable access that you should not worry about low level stuff unless you really, absolutely, positively, one hundret percent must have the last cycle spared. Because using a profiler, you'll find 1000 other, better suited placed to tweak performance than using arrays over lists when both would do the job.
List is basically a wrapper class around the array. List have internal array and resize it using optimal resize stategy when you add new items. When you need resizeable array, use list. And if you need only fixed size array, you may stick with array. There's no any noticeable benefits or losses using list or array.
Unless you have a good reason you need an array, generally a list is a better choice as it is more flexible. It is also possible to convert between the two if needed.