Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetComponent<SplineController>() doesn't work? [SOLVED]
#1
Hello, I've finally updated Curvy in my project which means replacing the deprecated FollowSpline with SplineController. I'm trying to call the SplineController script in a GO from another script in that GO. But haven't figured out how to properly do it.
For now I'd be happy to just be able to Activate the script when I trigger it.

What would be the correct way of activating this script, if GetComponent<SplineController>() isn't going to work?

Hah... always the way. I found the answer minutes after asking the question...
using FluffyUnderware.Curvy.Controllers;

Smile
Reply


Messages In This Thread
GetComponent<SplineController>() doesn't work? [SOLVED] - by ionside - 07-10-2016, 02:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 348 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 3,879 07-29-2025, 09:15 PM
Last Post: _Aka_
  Connections doesn't work in split scenes nehvaleem 4 2,469 05-29-2024, 07:31 AM
Last Post: _Aka_
  Collider doesn't get created by the CreateMesh Module pako88 5 2,758 12-26-2023, 11:13 AM
Last Post: _Aka_

Forum Jump: