One way to do it is with a 2-point spline; use local coordinates for this. A dynamic material with a parameter can control the colours. You could encapsulate this behaviour in a component and grant it to any object that might need it.
Alternatively, a beam particle might be useful for this. Not sure.
Oky, i creat simple fx particle effect and connect it to object, creat it global table items and blueprint. Now i can do more stronger fx particle like here UE4 Rarity Spawn Loot Drops - YouTube some one can help me whit it ?