Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController Initialization
#1
I've upgraded from using Curvy in Unity 4.3 to now Unity 5.2. I am having an issue with initialization and playing. Previously, I would call the Initialize function after assigning a CurvyPath to my object and that worked great. But now there is no Initialization function at all. And when I check the IsInitialized and IsPlaying properties when running the game, they are both false. Note that I have a SplineController component attached to my game object, but do not assign a CurvyPath to it. I later assign a CurvyPath in code during runtime. So it seems that something needs to be done after assigning the path so that everything with be initialized and start playing. I tried the Refresh function but that didn't work. I also tried calling Play, but that didn't work either. 

So, what do I need to do after assigning a path in code so that it'll get initialized and start playing?

EDIT: I see in the API introduction that I need to wait for IsInitialized to be true before using it, but in my case I'm not "using" it per se. I am simply assigning the CurvySpline to the SplineController and expecting it to automatically play. I don't actually do anything else beyond that. And no matter how long I wait, the IsInitialized is never true. So, there must be something else I'm missing.
Reply


Messages In This Thread
SplineController Initialization - by magique - 12-12-2015, 07:52 PM
RE: SplineController Initialization - by magique - 12-14-2015, 04:22 PM
RE: SplineController Initialization - by Jake - 12-14-2015, 06:28 PM
RE: SplineController Initialization - by magique - 12-15-2015, 04:39 PM
RE: SplineController Initialization - by magique - 12-16-2015, 11:41 PM
RE: SplineController Initialization - by Jake - 12-17-2015, 06:08 PM
RE: SplineController Initialization - by magique - 12-17-2015, 06:52 PM
RE: SplineController Initialization - by magique - 12-17-2015, 07:46 PM
RE: SplineController Initialization - by Jake - 12-23-2015, 02:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SplineController slows down approaching connections jh092 5 1,840 08-07-2020, 03:56 PM
Last Post: _Aka_
  make "GetCurrentControlPoint" in SplineController more accessable VampirasuGameStudio 2 1,687 04-19-2020, 02:03 PM
Last Post: _Aka_
  Facade class which inherits SplineController ATHellboy 1 1,221 01-30-2020, 10:13 AM
Last Post: _Aka_
  SplineController Delta after instantiate(Bug?) Marc Mitchell 5 3,592 11-26-2019, 08:38 PM
Last Post: _Aka_

Forum Jump: