Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script inheriting SplineController doesn't work the same as adding component?
#2
Hi,
It is because your class defines the Start and Update as empty methods, so the code from the base class is never called. You should either remove these two methods, or replace them with those:

Code:
void Start () {
    base.Start();
}

void Update () {
    base.Update();
}

Don't hesitate to ask any other question if you have one
Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Script inheriting SplineController doesn't work the same as adding component? - by _Aka_ - 04-28-2019, 12:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,974 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,874 07-29-2025, 09:15 PM
Last Post: _Aka_
  API - How to get an existing component? RickPalo 2 2,068 11-22-2024, 03:54 PM
Last Post: RickPalo
  How to modify Input GameObject's transformation properties by script. j95677 2 1,982 07-05-2024, 06:28 PM
Last Post: j95677

Forum Jump: