Search Unity

  1. Unity 2018.3 is now released.
    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. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    857
    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.