unity-collection-pool
Installation
SKILL.md
Unity Collection Pool - GC-Free Collection Management
Overview
Unity's UnityEngine.Pool namespace (2021.1+) provides built-in collection pooling to eliminate GC allocations from temporary collection usage.
Foundation Required: unity-csharp-fundamentals (TryGetComponent, FindAnyObjectByType), C# generics, IDisposable pattern
Core Topics:
- ListPool, HashSetPool, DictionaryPool usage
- CollectionPool for custom collections
- ObjectPool for arbitrary objects
- Pool lifecycle and disposal patterns
- Memory optimization strategies