Make sure
1-Mouse events are enabled
2- You SplineMeshCompoenet has Collision and blocking Visiblity