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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 13 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 24 01-17-2022, 01:39 PM
Last Post: _Aka_
  SplineController slows down approaching connections jh092 5 2,542 08-07-2020, 03:56 PM
Last Post: _Aka_
  instantiate Spline Controller at runtime PretzelStudios 2 1,844 05-07-2020, 09:03 PM
Last Post: PretzelStudios

Forum Jump: