Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UI button to start Curvy Spline in scene
#1
Hi,

How would I best go about requiring a scene UI button to be pressed before my game object shape starts travelling down the spline? At the moment, as soon as my scene starts, Curvy starts.

I.e. Like a "Start Race" button for a racing game.

Is there a script line I can place in Start() to pause Curvy until a UI button is pressed?


Thanks in advance.
Reply
#2
Hi,
I am assuming that you are using a Spline Controller to move your object.
Spline Controller has a property named "Play automatically", set to true by default, that makes the controller play at game start. Set it to false, then call manually the Play method on your controller once the user clicks on the UI button
I hope this helped. Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 187 08-24-2026, 11:28 PM
Last Post: _Aka_
  New User Looking for Advice on Choosing Curvy Splines ravigupta 1 164 08-21-2026, 09:45 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,071 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,444 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: