Set SubUV index for particle at spawn time

I’ve been playing around with sub uv’s in particle emitters. I can see how to control this in the editor, but is there a way to select a particular sub uv index in code and spawn them.

For example, by changing the subuv index you can have an emitter change which sprite it’s emitting.

(or is there some other way I can do this)