Question by
dimasadhipradana · Dec 06, 2017 at 07:07 AM ·
particle systemfireflames
how to set the flame using particle system based on time
hi, i new use of particle system, i need to set some torch fire is off automatically set by time, so it's like this : in 5 minute the fire is gonna disappear, any way to do that?.thanks
Comment
Answer by ifurkend · Dec 06, 2017 at 07:56 AM
You can just set the 5-minute Duration and disable Looping in particle system main module, simply play the effect again when no particle is being emitted.
Another way is to have a Looping particle effect, trigger particlesystem.play() OnEnbale and run a Coroutine to execute particlesystem.stop() after being delayed for 5 minutes via WaitForSeconds.
Your answer