Trying to modify a particle system via C# script. There is lots of documentation about it yet I keep getting errors.
I am using 5.4x.
The code I have found makes reference to “main” and yet when I run that code I get an error that UnityEngine.ParticleSystem has no definition for “main” so I presuming that “main” has been deprecated.
So could someone post a simple example of code that I would attach to a particle system that would modify particle duration as well as emission rate? I should be able to adapt it from there.