Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I change splines directly on runner controller via script?
#1
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)
   
Reply
#2
Hi
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Delete CurvySplineSegment from the start of a Spline causes UV's to change studentloan 5 6 06-14-2022, 03:14 PM
Last Post: _Aka_
  Splines as/in ScriptableObjects Najati 1 3 06-05-2022, 11:12 AM
Last Post: _Aka_
  Outer space simple vehicle controller itzikpel 1 7 04-29-2022, 03:05 PM
Last Post: _Aka_
  Switching splines linkinballzpokemon 3 13 04-13-2022, 04:23 PM
Last Post: _Aka_

Forum Jump: