How i can change particle color depending from the distance to the Emitter

I have a particle that gets some inital velocity in random directions , and then it get attracted back via Point Attractor.
I need to change the color the further it is away from the Attractorpoint ( wich is same as emitter in this case) and back to its starting color when its close.
there is no way to archive this with Color over Life as the Random movement is unpredictable.
any ideas ?
thx in advance

https://docs.unrealengine.com/en-us/…ence/Particles

The above link probably has what you are looking for, ParticlePositionWS. There are also many other material expressions that may come in handy. You may have to tweak something for local space, but worth a shot.

thx that did the job !