Unity: Need to reset a pooled object on return to pool. Perhaps using ScriptableObject?
问题 I have recently been trying out object pooling in unity to speed up the instantiation of several game objects at once. However, since these are fairly complex objects I need to reset them when they go back in the pool. I read that using ScriptableObject might be a good way to store the default values for an easy reset. But in order to do that I need to load a fresh ScriptableObject at runtime to store the actual values of the object. So in pseudocode, i'd have a class with public