PCG export to glTF

I use the PCG with spline to create the fences, but after I export it to glTF, the output file only contain one segment of the fences, wich is the single mesh. Is there any way to export the complete PCG generated scene?