Changing sub emitter via script?

I have a particle system, and I need to dynamically change its collision sub emitter via script. I can’t seem to find a solution. Is this possible?

When you make a new colission subEmitter in the particle system inspector, it should appear as a child of your gameObject. So you could make public ParticleSystem variable in your script and then attach the new Subemitter child to it.