05-20-2019, 09:41 AM
(This post was last modified: 05-20-2019, 09:52 AM by UsernameHed.)
Hello,
I have some profiler spikes from the CurvySpline.Update() in play mode.
(I have checked CheckTransform to false).
But I haven't found any Update methode in the CurvySpline, weird ?
When I am in play mode, I would like to set the script CurvySpline to disabled. But when I do that, my SplineController stop to move along the path. Why ? A Spline, When calculated, is just datas stored, no need to do an update for the Spline, right ?
I don't want any new change in the Spline when I am in build. I just want SplineController moving along this Spline.
EDIT: oh, I found out the script CurvySPline_private, and I found yours function Update, FixedUpdate and LateUpdate.
So at each frame, unity goes in the Update, FixedUpdate and LateUpdate methode (even if it doen't go in your the doUpdate function).
I would like to disable the script CurvySpline completly, but still be able to move along this spline with the SplineController. Is it possible ?
I Have managed to add in the enum a None Property:
And then it works, in the CurvySpline_private, we don't go into your Update method.
I guess it's resolved , I suggest you to add this None to this enum
I have some profiler spikes from the CurvySpline.Update() in play mode.
(I have checked CheckTransform to false).
But I haven't found any Update methode in the CurvySpline, weird ?
When I am in play mode, I would like to set the script CurvySpline to disabled. But when I do that, my SplineController stop to move along the path. Why ? A Spline, When calculated, is just datas stored, no need to do an update for the Spline, right ?
I don't want any new change in the Spline when I am in build. I just want SplineController moving along this Spline.
EDIT: oh, I found out the script CurvySPline_private, and I found yours function Update, FixedUpdate and LateUpdate.
So at each frame, unity goes in the Update, FixedUpdate and LateUpdate methode (even if it doen't go in your the doUpdate function).
I would like to disable the script CurvySpline completly, but still be able to move along this spline with the SplineController. Is it possible ?
I Have managed to add in the enum a None Property:
Code:
public enum CurvyUpdateMethod
{
Update,
LateUpdate,
FixedUpdate,
None
}
And then it works, in the CurvySpline_private, we don't go into your Update method.
I guess it's resolved , I suggest you to add this None to this enum