Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with InsertAfter/InsertBefore

Im having issues with the use of curvySpline.InsertAfter/InsertBefore function when Im creating in the same frame multiple splines with several points.

If I debug and inspect the spline point list, I can see that points are out of order, but if I wanted to insert the point X after point D (look the trace that I post at the end of the message), its placed correctly, but in the next frame, Curvy place the point X always at the end. These issue only happens when I handle multiple splines and points at the same frame, in other cases, it works fine.


When I inspect the newly created line with points added:

1. B
2. D
3. E
4. A
5. C

I want X in the index 3, so I use InsertAfter(D). After call the function, if I inspect it looks like:

1. B
2. D
3. X
4. E
5. A
6. C

But in the next frame, if I inspect the list (and also in game), I got:

1. A
2. B
3. C
4. D
5. E
6. X  <-- It should be in index 3, not here! ;(
Can you please send me a reproduction case?
Also, what version of Curvy Splines do you use?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_
Question Generator Canvas workflow issues Sacryn 1 7 02-02-2024, 11:22 PM
Last Post: _Aka_
Lightbulb issues with the shader in URP sukhov 4 8 11-22-2023, 12:52 PM
Last Post: _Aka_
  Curvy Splines Built In Editor Undo causes issues. Lupos 1 9 10-02-2023, 08:52 AM
Last Post: _Aka_

Forum Jump: