[Unity 5] Object Pooling Tutorial @SebastianLague
[Unity 5] Object Pooling Tutorial  @SebastianLague
Uploaded January 2016 | Updated September 2026, 2 weeks ago
Object pooling is an optimisation technique which is extremely helpful for boosting the performance of mobile games. The basic idea is to recycle a pool of objects, rather than continually instantiating and destroying new ones.

UPDATE:
At ~15:16 in the video, the lines copied should preferably be pasted BEFORE the call to OnObjectReuse(), so that when that method is called, the object will already have its correct position/rotation values. This could be important when resetting certain things, for example the velocity of a projectile based on its initial rotation.

Source code:
github.com/SebLague/Object-Pooling

Support my videos on Patreon:
bit.ly/sebPatreon
[Unity 5] Object Pooling Tutorial[Unity] Procedural Planets (E02 settings editor)Coding Adventure: Marching CubesIntroduction to Game Development (E25: stealth game 3/3)Procedural Landmass Generation (E03: Octaves)[Ludum Dare #43] The Resistance: Behind the ScenesUnity Gradient Editor (2/3)Create an RPG with Unity + Blender (introduction)RPG graphics E08: Icons [Blender]I Ran a Chess Programming Tournament![Unity] Procedural Cave Generation (E07. Ensuring Connectivity)A* Pathfinding (E08: path smoothing 1/2)
Sebastian Lague |

[Unity 5] Object Pooling Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER