HI,
I have 3 models in my particle system-renderer module-Meshes, but API has “ParticleSystemRenderer.mesh” but “meshes”, that I only can get the first mesh’s name.
Is it a issue of unity? Or is there another way to get the second, third mesh’s name?
try GetMeshes()
1 Like
For extra context, having Properties that return arrays is a bad pattern in C#, so we prefer to use a Method in this case.
We didn’t always get it right though, which is why we have Renderer.materials
;-(
There is some extra discussion/explanation about the reasons here: c# - CA1819: Properties should not return arrays. Does this happen only with arrays? If yes, why? - Software Engineering Stack Exchange
1 Like