Active actor in front of player and deactive behind him?

Hi Epic ?
I’am working on runner game for mobile and I need to active ( I mean to appear ) static mesh component in front of player on spline and deactivate (disappear) it behind him ?

I need working on static mesh or it’s collision on along spline ?
please help ?

any Idea for that