- Home /
How do i script a particle effect to start?
Sorry if this is a really newbie question, i only starting using the engine yesterday.
I have a particle emitter and i would like to script it so it only starts at a certain point in an animation. I am aware that you can call functions during animations and am aware that this will need to be done however i am at a loss to the actual syntax that is needed to start the emitter. I'm scripting in javascript btw.
Any help would be appreciated, Thanks.
Answer by TheDarkenedPoet · Apr 04, 2013 at 02:49 PM
I believe that you are simply looking for yourParticleEmitter.particleEmitter.enabled = (true for on and false for off).
thanks, it wasn't quite the answer i needed but it helped me find the right answer. yourParticleEmitter.particleEmitter.emit = (true for on and false for off). was what i needed :)
No problem, sorry I didn't get it completely correct but I am glad I could help.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
help in animation/code 1 Answer
Is it possible to manipulate Mecanim state machine / blend trees from scripting? 0 Answers
Created Animations only play half within Animator 0 Answers
Resetting a combo attack chain if next attack did not occur in time 1 Answer