As the title says, I need to set the renderer material of a particle system to match the current image of a particular tk2dSpriteAnimator. Since the sprite is animated, I have to do this programmatically at run time (I assume).
My initial assumption was that this would be a simple case of syncing up the ParticleSystemRenderer.material with the tk2dSpriteDefinition.material, however tk2dSpriteDefinition.material returns the sprite atlas, which isn't what I want. Browsing the documentation, I don't see any properties that would return the current frame image as a material. So what's my alternative?