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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 13 10-29-2024, 10:19 AM
Last Post: _Aka_
  Scene 51: Dynamic track between two points wallflower6 3 8 08-19-2024, 08:18 AM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_

Forum Jump: