Get a ref not a copy

How do i get the object which array references to? Since it is get a copy i cant make changes to the materials of array elements. Or to simplyfy how can i propagate changes to array elements like set material of array element?

I believe you create a separate temporary holding array for your new data and then clear out your main array and set the new values from the temporary array into it. It seems somewhat convoluted but that’s why I’m leaving a comment and not an answer to see if others have a better solution.

Solution found, as always unedxpectedly 15 minutes after i posted a question i found out how to solve the problem…

It is all about variable. Array must consist of mesh mesh component reference (type) not static mesh reference. Simple.
SMReferenceArray is the wrong one, i must use the Mesh itself Array.