08-28-2018, 01:48 PM
Hi,
I tried reproducing your issue but couldn't. Maybe some of your code modifies the OffsetRadius or some other parameters. Anyways, I have attached a working version of your code, with an example scene. I am sure that, by comparing my scene to yours, you will quickly find your issue's cause.
Unrelated to that issue, I have some remarks about your code:
I tried reproducing your issue but couldn't. Maybe some of your code modifies the OffsetRadius or some other parameters. Anyways, I have attached a working version of your code, with an example scene. I am sure that, by comparing my scene to yours, you will quickly find your issue's cause.
Unrelated to that issue, I have some remarks about your code:
- Based on your comment, cpPositions is build at Start. Just make sure that if the spline updates, you update that list too. In my code I used spline.ControlPointsList directly.
- You will have a better result if you have some logic to decide whether to use InsertBefore or InsertAfter, depending on your level configuration.
- InsertBefore does by default refresh the spline, no need to call the Refresh afterwards.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.