Hi Jake.
I tried use CurvySpline's pooling in my game but it crashes my game.
I wasn't sure if the CurvySpline pooling works across LoadScene().
My spline is sitting under a GameObject that persist across levels (DontDestroyOnLoad).
So, to repeat that, I have added a new button in the "97_Pooling" scene just to reload the same scene again.
And I'm getting the same error.
"The object of type 'CurvySplineSegment' has been destroyed but you are still trying to access it."
Any idea how to address that?
Note: I'm still using version 2.0.3.
BTW, Thanks for adding the pooling capability in version 2.0.3.
I tried use CurvySpline's pooling in my game but it crashes my game.
I wasn't sure if the CurvySpline pooling works across LoadScene().
My spline is sitting under a GameObject that persist across levels (DontDestroyOnLoad).
So, to repeat that, I have added a new button in the "97_Pooling" scene just to reload the same scene again.
Code:
public void ReloadLevel()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
And I'm getting the same error.
"The object of type 'CurvySplineSegment' has been destroyed but you are still trying to access it."
Any idea how to address that?
Note: I'm still using version 2.0.3.
BTW, Thanks for adding the pooling capability in version 2.0.3.