I have a GameObject "FireBall" with a ParticleSystem attached to it. I want to add the same ParticleSystem to other GameObject "Avatar". Initially there is no ParticleSystem attached to "Avatar".
When I do this -
ParticleSystem fireparticlesyst = gameObject.AddComponent<ParticleSystem>();
It adds a ParticleSystem to "Avatar" but I want to set all the properties of this ParticleSystem to the ParticleSystem attached to "FireBall".
If I add all the properties by individually I can't set some of the properties as they are read only.
How to do this ?