Good Morning All,
I apologize in advance if this is the incorrect forum. I’m trying to do some very simple manipulation with Unity’s Spline package, but from what I can see, the documentation is pretty limited and I am struggling. 
I have created a Spline Container and attached a Spline Animate script to the cube.
Through script, I need to be able to:
- Start & stop the cube’s movement on the spline.
- Change the cube’s speed and find out when it reaches the end of the spline.
Is anyone able to provide me an example of how to accomplish this?
Thank you so much to anyone who took the time in advance! 
I would start with the docs for this Spline package. I haven’t used it personally, but I assume the docs exist.
If you cannot find what you want in the docs, post a link to the docs and I’ll take a look too.
Ack, I didn’t check SplineAnimate, thanks a ton!
So, I can use Play()/Pause() to start and stop it, and Maxspeed to adjust the speed. Awesome!
That last thing I need to be able to do is find out when its reached the end of the Spline…
Would I just check “IsPlaying” to see if it’s reached the end?
I would try checking for NormalizedTime >= 1.0f , that’s a common pattern in Unity stuff although not sure if it will work for Splines (haven’t tried it)
1 Like