Unity collection pool

From AndreySkyFoxSidorov/UnifiedUnityMCP · View interactive version

Unity collection pool is an AI agent skill from the GitHub repository AndreySkyFoxSidorov/UnifiedUnityMCP. Use Unity collection pools on measured hot paths. Use when reducing GC allocations from repeated temporary List, Dictionary, HashSet, or object creation in Unity code.

How to use this skill

Skill file

Unity Collection Pool

Use This Skill When

Rules

Preferred Shape

List<GameObject> objects = ListPool<GameObject>.Get();
try
{
    // Fill and use the list.
}
finally
{
    ListPool<GameObject>.Release(objects);
}

References

Reference files contain broader examples. Apply only examples that match current repo rules and available Unity packages.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.