BACK TO CARTRIDGESDOWNLOAD BYOK BUNDLE (.JSON)
CLS-06 · Engines & Game JuiceVERSION 1.2.0 · 1,310 INSTALLS
Unity Zero-GC Pooling & ScriptableObject Channels
Replace singleton spaghetti and GC-spiking `Instantiate` calls with `ObjectPool<T>` and SO Event Channels.
ENGINE: unityAI: code
npx aigameskills add unity-scriptable-architectureSKILL.MD · INSTRUCTION MANUAL
## Production Unity C# Guardrails 1. **Zero Per-Frame Allocations in `Update`**: Ban LINQ, string concatenation, `GetComponent<T>()`, and unpooled `Instantiate` inside combat loops; use `UnityEngine.Pool.ObjectPool<T>` and pre-allocated `Physics2D.OverlapCircleNonAlloc` / buffer spans. 2. **ScriptableObject Event Channels**: Decouple HUD prefabs from player prefabs via `VoidEventChannelSO` / `IntEventChannelSO` assets so any scene can boot standalone in Play Mode!
LIVE CRT SKILL PLAYGROUND
COST: 4 MANA