Objects Pooling in Unity

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 9

  • @Noixelfer
    @Noixelfer  4 роки тому +3

    Hope you enjoyed the video, would you like to get a tutorial covering the prewarm part too?
    Also, how to use this system into your own Game:
    -Copy the files from Pooling Folder into your project
    -Create a Resource folder in your project (if you don't have one already)
    -Create a StreamingAssets folder in your project (if you don't have one already)
    -Add pools.json in StreamingAssets and create entries for each prefab that you want to use
    ex:
    [
    {
    "id": "bullet",
    "prefabPath": "Prefabs/Bullet",
    "initialSize": 10,
    "maximumSize": 100,
    "prewarm": false
    },
    {
    "id": missle
    "prefabPath": "Prefabs/Missle",
    "initialSize": 10,
    "maximumSize": 100,
    "prewarm": false
    }
    ]
    use ObjectsPooler.Instance.Get("poolId") to get your pooled prefab (where poolId is the id of your pool)
    ❤️Subscribe for more content:
    ua-cam.com/channels/PS6LgzHgvzotxsA7V5mNRA.htmlabout?view_as=subscriber?sub_confirmation=1

  • @georgesava1
    @georgesava1 4 роки тому +1

    Good to know that there is another way of pooling. Since now I knew only of HTTP long pooling 😁

    • @Noixelfer
      @Noixelfer  4 роки тому

      Yes, is always good to learn new things :)

  • @Chapali9a
    @Chapali9a 4 роки тому +1

    Fantastic stuff although not beginner friendly lol I couldn't keep up at all lol Thank you

    • @Noixelfer
      @Noixelfer  4 роки тому

      Haha, Thanks a lot. I still struggle to slow down the pace in the videos but I don't know why is so hard for me, hope that I can make the next video more beginner friendly

  • @tauheedgamedev2388
    @tauheedgamedev2388 4 роки тому +1

    Great tutorial, I don't know if my game needs pooling as it doesn't have a lot of bullets on screen at once but will definitely give it a try if performance of the game starts dipping Thanks . 👍Subbed

    • @Noixelfer
      @Noixelfer  4 роки тому

      I m glad to hear that you liked the tutorial :D

  • @bserre5647
    @bserre5647 4 роки тому +1

    Very useful thing.
    Just try to go a little slower haha.

    • @Noixelfer
      @Noixelfer  4 роки тому

      Thank you :D I really try to slow down the pace but my mouth just wouldn't listen to me haha