Answer the question
In order to leave comments, you need to log in
How to do pooling with different objects?
Good afternoon. There was such a situation. It is necessary to generate with random parameters, for example, a cat. They will be generated and go somewhere.
I wanted to use the pool, but it's only for identical objects. So I'm scratching my head, how to optimize such a process? I've been searching the internet for information on this topic, but nothing so far. I won’t have anything like 1000 bullets fired at the same time, but I don’t want to load the game once again.
I will be glad for any help! Thanks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question