XaiJu
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine - World Engine #7 - Global Animal Spawner - Object Pooling

This is the 22nd episode of unreal engine infinite world generation system.  Yesterday, we implemented a animal spawner which enables us to spawn animals in the world everywhere in the generated infinite terrain. SO, no matter where we go, there will be animals. Today, we are going to implement object pooling pattern to the system. This simply means, when player moves away from a certain area and the animals previously spawned in that area will not be required. But instead of destroying them, we will mark them as available to be replaced, and then when player moves to a new area, those available animals will be relocated, so that the system will not have to spawn them again. This would be better for performance of the game.


Download

password=CLM_WorldEngine

Unreal Engine - World Engine #7 - Global Animal Spawner - Object Pooling

More Creators