The question is answered, right answer was accepted
[Unity 5.5] How can I set the properties for the ParticleSystem.main by script?
So,before updating, I was setting the ParticleSystem.startDelay property for an array of particle systems by code (in a way that they start in different times to assure more randomness).
In Unity 5.5, that property got obsoleted. Instead, they suggest accessing using the ParticleSystem.MainModule. But I get this error:
error CS1612: Cannot modify a value type return value of `UnityEngine.ParticleSystem.main'. Consider storing the value in a temporary variable
The problem is: main is currently a get-only property. Is there any other way that I missed in the documentation for accessing those properties?
Have you taken a look at the API page? The code even does exactly what you're trying to do.