I need to pass an array to a function, but I need that the value on the original array is changed. So, how can I pass the array by reference? It’s a multidimensional array!
Arrays are reference types in all Unity-supported languages. You pass it by reference by default.