How to change color on the travel path unreal engine4

The actor is moving along a spline so you know where your are on the path. Assigning a dynamic material to a spline mesh component allows you do modify the material in real time via an exposed parameter - in this case a UV coordinate.