How would you pass a class type for implementing a spawning factory for object pooling?

So you want something like SpawnActor is doing? It’s called templates, but keep in mind templates are not supported by UE4 reflection system