Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Destroying curvyspline instances
#1
What is the correct procedure to remove an instance of a CurvySpline from memory?

For example I've created an object which travels along a spline, have set up the OnPositionReached event to fire something else, but part of that is to then remove the spline from view, along with the relevant modules (Generator, InputSplinePath, DeformMesh, etc).

I'm sure this is of course the wrong way, but if I Destroy the object, I get errors of:

Code:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
or
Code:
NullReferenceException: Object reference not set to an instance of an object

Have checked the docs, or rather searched for words like "Remove", "Destroy", "Close" etc but nothing seems to be pointing me to the right direction.
Reply


Messages In This Thread
Destroying curvyspline instances - by jmh1804 - 09-14-2024, 05:41 PM
RE: Destroying curvyspline instances - by _Aka_ - 09-15-2024, 09:43 AM
RE: Destroying curvyspline instances - by jmh1804 - 09-15-2024, 05:24 PM
RE: Destroying curvyspline instances - by _Aka_ - 09-16-2024, 08:32 AM
RE: Destroying curvyspline instances - by jmh1804 - 09-17-2024, 05:05 PM
RE: Destroying curvyspline instances - by _Aka_ - 09-18-2024, 07:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CurvySpline Optimize Candy 1 1,443 08-02-2024, 08:35 AM
Last Post: _Aka_
  I have a question about curvySpline haifeng.huang 12 6,972 07-14-2023, 09:34 AM
Last Post: _Aka_
  "Deadloop in CurvySPline.Refresh" spam Valkymaera 3 2,165 05-30-2023, 10:56 AM
Last Post: _Aka_
  Is curvyspline a good solution for a 2D rail grinding game? bazz_boyy1 2 2,020 03-01-2022, 11:49 AM
Last Post: _Aka_

Forum Jump: