- Home /
Question by
sezercanaktemur · Feb 23, 2019 at 08:07 AM ·
particlesparticle systemparticleemitter
Unity new particle system conversion
I tried to convert old unity particle emitter to new shuriken system. Here is what i do so far;
Before Conversion;
private Particle[] particles;
void Start() { oneOverZigs = 1f / (float)zigs; particleEmitter.emit = false;
particleEmitter.Emit(zigs);
particles = particleEmitter.particles;
} After Conversion;
private ParticleSystem.Particle[] particles;
void Start() {
oneOverZigs = 1f / (float)zigs;
GetComponent<ParticleEmitter>().emit = false; --> Particle Emitter doesn't contain 'emit'
GetComponent<ParticleEmitter>().Emit(zigs); --> Particle Emitter doesn't contain 'Emit'
particles = GetComponent<ParticleEmitter>().particles; --> Particle Emitter doesn't contain 'particles'
} I specified errors above code. I couldn't convert much more. How can i convert 3 lines to new system?
Comment