05-29-2022, 06:26 PM
Hi
SetLocalPosition does a lot of things: updates the Control point's position, dirties the spline, and handles connections synchronisations. Do you need the synchronization part? Otherwise, you can simply set the local position by calling:
s_SplinePath.ControlPointsList[i].transform.localPosition = s_PositionBuffer[i]
Let me know if this solution is enough for you
Have a nice day
SetLocalPosition does a lot of things: updates the Control point's position, dirties the spline, and handles connections synchronisations. Do you need the synchronization part? Otherwise, you can simply set the local position by calling:
s_SplinePath.ControlPointsList[i].transform.localPosition = s_PositionBuffer[i]
Let me know if this solution is enough for you
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.