How to toggle the visibility of static mesh on a spline?

Hey there,

I made a BP Class with a Spline and added a static mesh to it. I would like to toggle the visibility of it.
It´s possible to change the visibility in the “add static mesh component” node, but how can i toggle it with an “OnBeginOverlap” event etc???

And why is the staitc mesh still visible when i make the spline invisible??

Thanks for your help,
have a great day.