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)
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 189 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 151 08-22-2026, 11:24 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,073 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,445 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: