particles!!!!

can someone please show me an example of a script which increases the min, max size and energy of a particle emitter determined by a variable. I get strange errors when I try mine such as “there needs to be an instance of ParticleEmitter”.

Any help would be great!

The error is that the game object you have attached your code doesn´t have a particle emitter. If you attach your script to the particle system itself, or attach the particle system to a game object and the script to the latter, just write in your code:

particleEmitter.property = value;

“property” can be any one of those avaliable from ParticleEmitter object. Any one but Ellipsoid, which is a shame in my opinion. Unity Team could fix this in the next release.

much appreciated, thanks mate… ill try it out when i get home from work