ParticleComponents.cpp Set*Parameter bug with duplicate named parameters

I’ve noticed some inconsistent behavior with particle parameters. I wanted to use a single parameter in multiple emitters so that I could have a single “ParticleLength” parameter that could control all emitters. If you set this parameter via blueprint or the Set*Parameter functions, it only sets the first emitter parameter found.

However, if you add a particle system to a level and add an instanced parameter, that instanced parameter will get propagated to all parameters of the same name.

This behavior between instance parameters and manually setting a parameter is inconsistent. In my case, the desired behavior is the latter, where setting a parameter affects all parameters on my particle system that match the parameter name.

It turns out this is working correctly. The issue was that one of my emitters was set to a lifetime of 0 and I was trying to move initial location, so in effect it never got updated. I switched to parameterizing Direct Location instead.