Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I change splines directly on runner controller via script?
I am an artist developing maps with the Spline tool and rather than trying to finish the route in order to get the next one, I want to go over every route quickly by just teleporting to other routes via the UI button.

I already made a script to create a list of all the splines in the game, and I want to directly input different splines into the Runner Controller / General / Spline slot in the inspector.

Attached Files Thumbnail(s)
a controller can have only one spline at a time, but you can modify that spline at will via the API, by assigning a different value to the Spline property of a SplineController (from which RunnerController inherits). You can also use the SwitchTo method to switch splines with a smooth animation.
I hope this helped
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Stack overflow when editing prefab containing splines rhys_vdw 4 10 11-30-2022, 11:38 AM
Last Post: _Aka_
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 5 11-29-2022, 06:59 PM
Last Post: _Aka_
  Error when switching splines ricke 3 6 10-10-2022, 08:46 AM
Last Post: _Aka_
  Intersection of two curvy splines Einherj 5 15 10-04-2022, 10:14 PM
Last Post: _Aka_

Forum Jump: