Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController Delta after instantiate(Bug?)
#6
Hi,

I did some tests and here is what I found:
When instantiating an object using GameObject.Instantiate, its Start() method does not get called directly after the Instantiate call. So when you call controllerPrefabInstance.ApplyDeltaTime(2), it is done before the call to Start(). And it is in the Start method that the controller checks the value of PlayAutomatically to make the controller play. So if you want the code you posted to work, you need to manually call Play before calling ApplyDeltaTime.

Also, a reminder to you and other forum users: do not include Curvy Splines in the projects you share. This is a violation of the Asset Store Terms and Service. The only way to get Curvy Splines should be by buying it.

Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: SplineController Delta after instantiate(Bug?) - by _Aka_ - 11-26-2019, 08:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,413 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,477 07-29-2025, 09:15 PM
Last Post: _Aka_
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 1,820 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 1,739 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: