How do I get total duration of a particle prefab

I know it is easy to use GetComponent to get the duration of a particle prefab if Particle system is directly attached to the parent. But how do I get the total duration if the parent has a lot of child with particle system attached to each of them?

You should drag the one you want into a public ParticleSystem variable.

If you want to get all of them you can use GetComponentsInChildren() and iterate them yourself.

Hi, thanks for reply.
It seems like I have to iterate all over the children. I thought there will be alternate way or easier way.