Unity some parameters get deleted after single Update
So, here I have a c# Unity script (for GPU instancing) where the mesh but also material variables seem to get destroyed. Weirdest part is that in the inspector everything seems to be fine, but every second update I get error ArgumentNullException: Value cannot be null. Parameter name: mesh.
Both mesh and material never get changed by any other script