Can I change particle sprite in ParticleFX programmatically?

I know that i can change shader constants in particlefx.set_constant()
But how to change sprite?

2 Likes

I’m fairly certain this can’t be changed at runtime.

Hello

particlefx.set_constant()

Is there a list of accessible constants of a particlefx component. I couldn’t manage to find it anywhere.

Best Regards,

This is for changing the constants of the shader you associate with the particlefx component. Check the shader for any constants (builtins/materials/particlefx.material). You can make a copy of the shader, add any constants you need, and use that constant data in your shader programs. Built in materials only have the tint constant for the fragment shader, I believe.

2 Likes

Thank you @Pkeod,

I misunderstood the concept i think.

Best Regards,