What problem does it solve?
Developers struggle to pick the correct Unity scheduling model and lifecycle strategy for runtime work, leading to resource leaks, cancelled tasks not being cleaned up, unnecessary dependencies, or poor performance in hot paths. This Skill provides a clear decision ladder and guardrails to choose between Update, coroutine, UniTask, timers, and IDisposable patterns while ensuring proper ownership and cancellation.
Core Features & Use Cases
- Decision Ladder: Step-by-step questions to determine whether a task needs per-frame work, short Unity-bound sequencing, or background async handling.
- Guardrails & Tradeoffs: Advice on when to avoid Update, prefer coroutines, or accept UniTask only when the project already uses it or the dependency is acceptable.
- Lifecycle & Cancellation Guidance: Recommendations for who starts, who cancels, and when to clean up using OnEnable/OnDisable/OnDestroy, IDisposable, or explicit cancellation tokens.
- Use Case Examples: Choosing Update for continuous input/polling, coroutines for short sequential animations, timers for infrequent delays, and UniTask when an async ecosystem is established.
Quick Start
Advise whether to use Update, coroutine, UniTask, or a timer for a 3-second UI fade that must cancel on scene unload.