I am trying to access the individual positions of the particles in a particle system. For example you can get a particle array from a newly created ParticleSystem by using this line.
ParticleSystem.Particle emittedParticles = new ParticleSystem.Particle[this.particleSystem.particleCount]; But I am needing the get the particles for the ParticleSystem that is attached to the object that my script is attached to. But when I try to access the particle array like this `
//particleSystem is given the ParticleSystem component of the object that this script is attached to.
ParticleSystem.Particle emittedParticles = particleSystem.Particle[this.particleSystem.particleCount];`
I get an error because there is no particle array for me to access.
What can I do?