๐ OSK Framework
May 19, 2026 ยท View on GitHub
OSK Framework is a lightweight, modular, and high-performance Unity architectural framework designed for professional game development. It features zero runtime GC allocations in core loops, an isolated Multi-Canvas UI system, and a modern MVVM-like Universal Data Binding engine.
๐ Key Features & Sub-Managers
Click on any module to view its detailed documentation, API reference, code examples, and performance guidelines:
- โฑ๏ธ Centralized Tick System (MonoManager) โ centralizes Update, FixedUpdate, and LateUpdate loops to eliminate native C++/C# boundaries.
- ๐ฆ Object Pooling (PoolManager) โ high-performance object and component recycling system with
IPoolablecallbacks. - โ๏ธ Event Bus System (EventBusManager) โ decoupled, type-safe global publish-subscribe event hub.
- ๐ Sound Manager (SoundManager) โ handles BGM, SFX, UI audio, cross-fade transitions, and automatic volume persistence.
- ๐จ UI Manager & UniversalBinder (UIManager) โ multi-canvas layout isolation (Screen, Popup, Notif, Overlay, Lock) coupled with a zero-reflection MVVM Data Binding engine.
- ๐พ Local Storage (DataManager) โ encrypted game save storage and optimized PlayerPrefs alternatives.
- ๐ Game FSM (ProcedureManager) โ structured game loop flow states using finite state machine nodes.
- ๐ Localization System (LocalizationManager) โ multi-language translation and dynamic language swapping.
- ๐ Shared Blackboard (BlackboardManager) โ key-value database for AI decision-making (Behavior Trees) and shared parameters.
- ๐ ๏ธ Utility Managers (Command, Observer, Director, Resources...) โ auxiliary managers for scene transitions, Undo/Redo commands, resource caching, and input handling.
๐ Quick Start
1. Prerequisites & Dependencies
Ensure the following packages/assets are installed:
- Odin Inspector & Serializer (Required for premium Editor UI)
- DOTween (O-S-K Fork)
- Newtonsoft.Json (
com.unity.nuget.newtonsoft-jsonvia Package Manager) - UniTask (High-performance async helper)
2. Setup Framework
- In the Unity Editor top menu, go to: Window โ OSK-Framework โ CreateFramework.
- Select the
Mainsingleton in the hierarchy. - In the Inspector, navigate to Main Modules, select the managers you require, and click "Sync Modules (Hierarchy)" to automatically generate the module tree in your scene.
โก Core Performance Guidelines
- Zero GC Spawning: Avoid instantiating entities or particle effects. Recycle them using the PoolManager.
- Avoid Update Loops: Centralize updates in game loops using the Centralized Tick System to save CPU instructions.
- Layout Rebuild Isolation: Keep dynamic UI elements inside independent canvases to limit canvas redrawing, as detailed in the UIManager Guide.
๐ Support & Community
- Facebook Group: OSK Framework Community
- Email Contact: gamecoding1999@gmail.com