Essential Utilities
Scripts every Unity project needs regardless of genre — singletons, object pooling, input management, scene transitions, and more.
7 steps 7 scripts beginner
The path
Add these in order. Each step builds on the one before it.
- Start: Generic singleton for managers Singleton.cs · Thread-safe, persistent singleton base class for managers like AudioManager, GameManager, etc.
- Load and transition between scenes SceneLoader.cs · Async scene loading with loading screen, progress bar, and minimum load time. Clean transitions between levels.
- Add fade transitions between scenes ScreenFader.cs · Simple screen fade-in/fade-out with configurable color and duration. Great for scene transitions.
- Manage background music and sound effects AudioManager.cs · Complete audio manager with music crossfade, SFX pooling, volume control, and persistence.
- Pool objects for performance (bullets, particles) ObjectPool.cs · Generic object pooling system to reduce garbage collection. Perfect for bullets, particles, and enemies.
- Centralized input handling with rebinding InputManager.cs · Rebindable action layer over Unity's legacy Input class: named actions, runtime key rebinding saved to PlayerPrefs, and pressed and released queries.
- Versatile timer for countdowns and delays Timer.cs · Versatile timer with countdown, stopwatch, and repeating modes. Formatted time display and UnityEvent callbacks.
Every script in this path
- Generic SingletonThread-safe, persistent singleton base class for managers like AudioManager, GameManager, etc.
- Object PoolGeneric object pooling system to reduce garbage collection. Perfect for bullets, particles, and enemies.
- Scene ManagerAsync scene loading with loading screen, progress bar, and minimum load time. Clean transitions between levels.
- Input ManagerRebindable action layer over Unity's legacy Input class: named actions, runtime key rebinding saved to PlayerPrefs, and pressed and released queries.
- Timer / CountdownVersatile timer with countdown, stopwatch, and repeating modes. Formatted time display and UnityEvent callbacks.
- Audio ManagerComplete audio manager with music crossfade, SFX pooling, volume control, and persistence.
- Screen FaderSimple screen fade-in/fade-out with configurable color and duration. Great for scene transitions.