Add save function for ParticleEffect2D.