About
This skill provides specialized guidance for Unity developers to eliminate garbage collection (GC) pressure through efficient collection pooling using the UnityEngine.Pool namespace. It masters implementation patterns for ListPool, HashSetPool, and DictionaryPool, ensuring that temporary collections used in high-frequency methods like Update or FixedUpdate do not cause frame-rate-stuttering allocations. By enforcing the IDisposable pattern and proper lifecycle management, it helps developers write high-performance, allocation-free code for raycast results, component queries, and complex data processing.