Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. 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
  8. 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:
    838
    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.