Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Tutorial - Unity 2021 Object Pool API - What is Object Pooling and How to Use the NEW API

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Oct 26, 2021.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    266


    Hey all! Happy #TutorialTuesday!

    Many of you probably already use Object Pooling in your game, but probably through rolling your own pool, or perhaps with a free or even paid library. Starting with Unity 2021 Object Pooling is natively supported! This week you'll learn what Object Pooling is, why it's used, and how to use the Unity 2021 Object Pooling API with all the bells and whistles that come in this API for the most common use cases. We'll compare using the 2021 Object Pooling performance with instantiate / destroy to highlight the benefits, and also talk about one missing feature in the API I'd really like to see added.

    As always, full project code is available on GitHub!

    If you're getting value from this series, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!