01-15-2020, 10:39 PM
Hi,
Length's value is computed based on the positions of the control points. This computation is done via the Refresh method, which is public. This is done automatically at initialization, and each frame when needed. Sometimes, when using the API, one can modify something that would need a manual Refesh call if one does not want to wait for the automatic call next frame.
Can you please tell when you create the spline and when you call the Length property. If you can provide me code it would be even better.
Also, can you confirm to me that calling Refresh fixes the issue?
Have a nice day
Length's value is computed based on the positions of the control points. This computation is done via the Refresh method, which is public. This is done automatically at initialization, and each frame when needed. Sometimes, when using the API, one can modify something that would need a manual Refesh call if one does not want to wait for the automatic call next frame.
Can you please tell when you create the spline and when you call the Length property. If you can provide me code it would be even better.
Also, can you confirm to me that calling Refresh fixes the issue?
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.