Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance function
#4
You are welcome

Please insert the following code just above the line 1397 that produces the exception, that will help understand what is happening once the exception happens again.
Code:
            if(idx >= ApproximationDistances.Length)
                Debug.LogError($"idx: {idx} ; length {ApproximationDistances.Length} ; length 2 {Approximation.Length}");
            else if (idx + 1 >= ApproximationDistances.Length)
                Debug.LogError($"idx  + 1: {idx + 1}  length {ApproximationDistances.Length} ; length 2 {Approximation.Length}");
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance function - by _Aka_ - 03-10-2021, 11:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Errors in Built Application in CurvySplineSegment TdayMFG 7 3,335 04-13-2025, 09:24 AM
Last Post: _Aka_
  Disabling a CurvySplineSegment results in NullRefException Lupos 1 1,423 10-02-2023, 09:55 AM
Last Post: _Aka_
  Custom CurvySplineSegment prefabs Lupos 1 1,507 10-02-2023, 09:36 AM
Last Post: _Aka_
  Does Curvy has gameobjects pooling system function? Chanon 7 3,880 09-07-2023, 12:43 PM
Last Post: _Aka_

Forum Jump: