- Home /
Passing an array to a function by reference?
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!
Comment
Best Answer
Answer by Drakestar · May 14, 2012 at 07:01 PM
Arrays are reference types in all Unity-supported languages. You pass it by reference by default.