How to adjust a SplineMeshComponent in RealTime

The problem is that those examples do not show you how to do it in Real time(While the game is running)