Search Unity

  1. Full schedule for #UniteBerlin is now available! Featuring talks on our roadmap, hands-on labs and much more! Check it out!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

[RELEASED] GameObject Pooler

Discussion in 'Assets and Asset Store' started by steego, Jul 20, 2015.

  1. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    827
    Screenshot 2015-07-20 15.05.46.png


    GameObject Pooler is a scripting plugin for Unity that implements a flexible and easy to use object pool.

    Object pooling is essential for performance as it avoids the costly Instantiate and Destroy functions and the associated garbage that is generated and causes the garbage collector to kick in.

    The Pool is simple to use, just replace your calls to Instantiate with Pool.Borrow and your calls to Destroy with Pool.Return.

    Set up the items in your pool either in the editor or through code at runtime. This way you can have different items in your pool for example for each level.

    Includes the possibility for logging the usage of each pool item, so you can fine-tune the number of items in your pool.

     
    theANMATOR2b likes this.