{"id":13661871,"url":"https://github.com/densylkin/QuickPool","last_synced_at":"2025-04-25T06:30:41.320Z","repository":{"id":95059851,"uuid":"44030460","full_name":"densylkin/QuickPool","owner":"densylkin","description":"Simple pooling toolkit for Unity game engine","archived":false,"fork":false,"pushed_at":"2016-03-30T10:28:11.000Z","size":1575,"stargazers_count":32,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-10T17:45:15.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/densylkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-10-10T22:17:21.000Z","updated_at":"2024-10-25T21:10:01.000Z","dependencies_parsed_at":"2023-06-12T01:00:28.529Z","dependency_job_id":null,"html_url":"https://github.com/densylkin/QuickPool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/densylkin%2FQuickPool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/densylkin%2FQuickPool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/densylkin%2FQuickPool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/densylkin%2FQuickPool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/densylkin","download_url":"https://codeload.github.com/densylkin/QuickPool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250767001,"owners_count":21483905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:43.174Z","updated_at":"2025-04-25T06:30:39.880Z","avatar_url":"https://github.com/densylkin.png","language":"C#","funding_links":[],"categories":["C\\#","Open Source Packages","Game Development"],"sub_categories":["Pooling System","Unity Engine: Resources"],"readme":"# Unity-QuickPool\n[Asset store](http://u3d.as/jEu)\nUsage\n-----\nYou can use quickpool in two ways:\n- Create PoolManager and configure your pools with editor \n\n![Imgur](http://i.imgur.com/mMy5Pr5.png)\n\n- Or create a Pool field (in this case you will need to register your pool somewhere in Start with PoolManager.RegisterPool())\n\n![Imgur](http://i.imgur.com/N6jDhrr.png)\n\nInclude QuickPool namespace\n\n```C#\nusing QuickPool;\n```\n\nYou can use extention methods\n\n```C#\nvar instance = somePrefab.Spawn(Vector3.zero, Quaternion.identity);\nvar component = somePrefab.Spawn\u003cComponent\u003e(Vector3.zero, Quaternion.identity);\nobj.Despawn();\n```\n\nYou also can get concrete pool from PoolManager or use that one you have created\n\n```C#\npublic Pool pool = new Pool()\n{\n  size = 100,\n  allowGrowth = true\n};\n\n// OR\n\nvar pool = PoolManager.Instance[\"pool name\"];\n```\n```C#\nprivate void Start()\n{\n  PoolsManager.RegisterPool(pool); //register pool if you want to use extention method Despawn\n  pool.Initialize(); \n  \n  var instance = pool.Spawn(Vector3.zero, Quaternion.identity);\n  var conponent = pool.Spawn\u003cComponent\u003e(Vector3.zero, Quaternion.identity);\n  pool.Despawn(instance);\n}\n```\nDespawn all spawned objects\n\n```C#\nPoolsManager.DespawnAll();\n// OR\npool.DespawnAll();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdensylkin%2FQuickPool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdensylkin%2FQuickPool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdensylkin%2FQuickPool/lists"}