Hi I fixed a lot of my compile errors but this one I don’t understand. I changed ParticleEmission to ParticleSystem to fix the compile error, and then it said ParticleSystem doesnt contain a definition for minEmission.
error CS1061: Type UnityEngine.ParticleSystem' does not contain a definition for
minEmission’ and no extension method minEmission' of type
UnityEngine.ParticleSystem’ could be found. Are you missing an assembly reference?
meshParticles.transform.GetChild (0).GetComponent<ParticleSystem> ().minEmission = laserDistance * 3;
meshParticles.transform.GetChild (0).GetComponent<ParticleSystem> ().maxEmission = laserDistance * 3;