Hello, I have a Spline with a attached mesh that is spawned in the construction script.
In the eventgraph i have a door that the spline is attached to, half of the splinepoints should be fixed but I cannot solve this…
I have try saving the locations on beginplay that i want to be static, and during the “open door” event, i set the saved locations to the specific spline points but they still follow along the the actor in the rotation…
I am updating the Start/End locations etc… but it just does not work, I got a print string on the end just to make sure it fires through the update and it does but nothing moves…
Does anyone have a tutorial or can explain to me how updating during runtime should be done?
Yes you are right. But I am updating it after I move splinepoints. Is there some debug for gameplay so that I can see the spline like in the editor?
My script works if I add a new splinecomponent but I cannot change the one already made…
You can. When you construct the spline and add the SplineMeshComponents (SMCs), also add them to an array.
Every time you want to update the spline points, update them as usual. And then loop through the SMCs array and update their position matching the spline points.