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

[RELEASED] GameObject Pooler

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

  1. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    969
    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.