Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed variable in Spline Controller
#1
Hello all

I'd like to modify the Speed variable in the SplineController script
How ever accessing the sped vairable with a script did not change the actual parameter in the component "spline controller" in the editor.

I see that the speed variable is a read only variable perhaps changing is to read and write would help me.
what your experience with it?
Reply
#2
Hi,
SplineController, and all the other controllers, have a read/write Speed property.
I attached to this post a script (and the scene to test it) that reduces a SplineController's Speed by half every second, and it gets updated in the editor as well.
Do you manage to compile and run this test script? If not, please answer the questions I put in my answer to your mail, so I can debug your issue.
Thanks and have a nice day


Attached Files
.zip   SpeedReducer.zip (Size: 5.09 KB / Downloads: 10)
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
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 221 06-07-2025, 09:44 AM
Last Post: _Aka_
  Filling a closed spline dynamically rickgplus 1 450 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 411 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 1,590 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: