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: 5)
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
  How to spawn GameObjects on corners of the liinear spline? Pixel Flipper 7 86 09-18-2019, 07:03 PM
Last Post: _Aka_
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 8 140 09-18-2019, 06:48 PM
Last Post: _Aka_
  How to properly set UV for extruded spline texture Pixel Flipper 3 84 09-05-2019, 11:55 AM
Last Post: _Aka_
  Steer Towards Spline whitecastleroad 3 94 09-04-2019, 01:39 PM
Last Post: _Aka_

Forum Jump: