Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Play() does not cause SplineController to produce expected behaviour
#1
Hello all, I hope you are well. I have a problem which has halted my initial onboarding to Curvy Splines and I would really appreciate some help.

I have a basic Spline with four control points, and an example game object with a Spline Controller attached. The example game object has no colliders or rigidbodies attached, and exists only as a base Unity GameObject, with some Monobehaviours (unrelated to movement) attached.

I attached a Spline Controller to the aforementioned game object, and when "Play Automatically" is ticked - it follows the spline as expected, including abiding by constraints, and emitting expected events. This is the desired behaviour.

However, if I untick "Play Automatically", and instead call "Play()" the object does not follow the spline as expected. The PlayState is updated, but the object does not move. I have also wrapped any usage in a Coroutine to test if I need to wait for the Spline to be initialized, but this has made no difference.

I have watched all of the tutorials online numerous times which set Position to 0, and the Position Mode, and have replicated this exactly. However, Play() does not begin movement.

I then resorted to writing my own movement script, following the exact usage as found here:
Using controller via API - Curvy Splines tutorial

However, this meant that Events "OnEndReached" were not triggered successfully - and that's something I would need.

Any help to get this to work as expected would be much appreciated.

For clarity, my desired behaviour is:
  1. I would like to trigger "Play" (and subsequently "Pause") at any time via code and have the Spline Controller reach as expected.
  2. I would rather use the Spline Controller if available as I can take advantage of its additional properties in a convenient manner (such as Clamping etc)
  3. I need the events to fire at their expected intervals, such that I can then react to it via code
Reply


Messages In This Thread
Play() does not cause SplineController to produce expected behaviour - by ConCat - 02-02-2026, 12:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,409 07-29-2025, 09:15 PM
Last Post: _Aka_
  Additional offset to Follow behaviour Ayyappa 3 2,150 04-30-2024, 01:35 PM
Last Post: _Aka_
  Support for "Fast Enter Play Mode" via "No Domain Reload" XtroTheArctic 5 3,888 11-27-2023, 12:03 PM
Last Post: _Aka_
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 6 4,168 04-10-2023, 10:18 PM
Last Post: _Aka_

Forum Jump: