Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to access existing spline from custom script
#3
The error in the first script makes me assume spline was null the time you access it in Start(). Also, if you inherit a class from SplineController you don't need a Start() and an additional spline variable. Use the Spline property instead and override some of the methods used by the controller to add your custom behaviour. See here for more details on extending.
Reply


Messages In This Thread
RE: Not able to access existing spline from custom script - by Jake - 12-04-2015, 07:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,368 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 661 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,464 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,237 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: