10-06-2021, 07:34 AM
I will take a deep look at all this later today. Until then, know that in the pool script, there is a Threshold parameter that defines the maximum number of elements to keep. If this didn't help, is it possible for you to send a reproduction case (scene and the scripts needed by that scene) with the issue?
In general, I don't recommend to use the pool components such as ComponentPool, which are part of the FluffyUnderware.DevTools third party library. They do the work, but they are not intuitive to use in my opinion. I am sure there are way better pools from pooling assets on the store. Curvy Splines uses the pools from DevTools for historical reasons, but for new code such as yours, I would avoid using them.
In general, I don't recommend to use the pool components such as ComponentPool, which are part of the FluffyUnderware.DevTools third party library. They do the work, but they are not intuitive to use in my opinion. I am sure there are way better pools from pooling assets on the store. Curvy Splines uses the pools from DevTools for historical reasons, but for new code such as yours, I would avoid using them.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.