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

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.
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. 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
  Multiple controllers on one spline breaks stuff Lupp_ 20 507 01-03-2020, 08:20 PM
Last Post: Lupp_
  Curvy not appearing in Unity 2019.2.14f1 bmacdonald1986 3 211 12-12-2019, 11:40 AM
Last Post: _Aka_
  Reuse Curvy Generator Wanderfalke 4 208 12-06-2019, 12:06 PM
Last Post: Wanderfalke
  Spawn object on Curvy Spline. ktpttd 3 285 11-20-2019, 01:38 PM
Last Post: _Aka_

Forum Jump: