I want to destroy the particlefx and its game object when the particle finished playing. Right now I have to hard-coded the particlefx’s emitter’s duration in the script to destroy it when it ended.
Is there a way to be notified when the designated particle’s emitter (play_once) end or otherwise a way to get designated particle’s emitter’s duration from code.
It will be good because when designers changed the particlefx and also it’s duration the script just can handle it automatically instead of the designers have to let me know they changed and I have to change a variable duration that hard-coded in the script.
Thanks