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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 231 04-16-2025, 08:56 AM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 467 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 240 03-18-2025, 10:11 PM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 286 02-03-2025, 09:34 AM
Last Post: _Aka_

Forum Jump: