11-12-2019, 02:01 PM
Hello
Unity's API has this method to define the rank of an game object in its hierarchy:
https://docs.unity3d.com/ScriptReference/Transform.SetSiblingIndex.html
Then after you are done changing the order of CPs, call CurvySpline.SyncSplineFromHierarchy(), and if needed CurvySpline.Refresh() after that.
That should be it. Please let me know if this didn't solve your issue.
Have a nice day
Unity's API has this method to define the rank of an game object in its hierarchy:
https://docs.unity3d.com/ScriptReference/Transform.SetSiblingIndex.html
Then after you are done changing the order of CPs, call CurvySpline.SyncSplineFromHierarchy(), and if needed CurvySpline.Refresh() after that.
That should be it. Please let me know if this didn't solve your 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.