Move Skeletal Mesh along spline with root motion animation

Hi community,

like title says, is there a way to move along a spline and get the distance update via a root motion animation.

Thanks in advance.

regards