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


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 7 11-29-2022, 06:59 PM
Last Post: _Aka_
  Bug with an HDRP project that doesn't use the Standard shader Ferdinand 2 4 10-17-2022, 03:16 PM
Last Post: _Aka_
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 11 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 21 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: