Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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:
    845
    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.