How would i go about controlling a Particle system…
What I mean is,
Say i had a steam pipe, and I turned that pipe off(using 3 stage animation from maya,idle fail, success ect)how then would i get an active Particle system to turn off or fade out on queue with that previous success action of that item only?
Thanks
You can simply turn the particle emitter on and off
This for when you want it to be on
particleEmitter.emit = true;
or
particleEmitter.emit = false;
This will turn your particle system on and off at the press of a GUI button
var PE : ParticleEmitter;
function Update(){
if(GUI.Button(Rect(Screen.width/2 - 110,Screen.height/2 + 75,128,32),"turn me on")){
if (PE.emit){
PE.emit = false;
}else{
PE.emit = true;
}
}
}