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. 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
  Invert the spline points ? UsernameHed 1 3 8 hours ago
Last Post: _Aka_
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 9 158 11 hours ago
Last Post: teamteam
  How to spawn GameObjects on corners of the liinear spline? Pixel Flipper 7 95 09-18-2019, 07:03 PM
Last Post: _Aka_
Information Curvy 6.0.1 is live _Aka_ 0 41 09-09-2019, 11:56 AM
Last Post: _Aka_

Forum Jump: