A practical collection of reusable, production-oriented Unity scripts and tools for game developers.
If this library saves you time or helps you ship your game faster, please consider supporting the project.
⭐ Star this repository on GitHub 🍴 Fork it and make it your own 💡 Share useful improvements and ideas 🐛 Report bugs and issues 🤝 Contribute new tools and solutions
Every star, contribution, and bit of feedback helps keep this library growing.
Unity Code Library is a growing collection of reusable C# scripts, Unity systems, editor tools, managers, utilities, and ready-to-adapt solutions that can help speed up game development.
The goal is simple:
Don't rewrite the same code for every Unity project.
Instead of spending hours rebuilding common systems, you can browse this repository, find a useful implementation, and adapt it to your own project.
This library is built around practical development experience and focuses on things that are actually useful while building games.
Whether you are prototyping a new idea, working on a mobile game, building editor tools, or developing a larger production project, you may find something here that saves you time.
Unity development often involves writing the same types of systems again and again:
- Ads integration
- Firebase systems
- In-App Purchases
- Localization
- Notifications
- Upgrade systems
- Tutorials
- Internet connection checks
- UI helpers
- Editor utilities
- Mobile privacy / ATT handling
- Game managers
- Debugging tools
- Small reusable components
This repository collects these kinds of solutions in one place.
The purpose is not to create another huge framework.
The purpose is to provide small, practical, reusable pieces of code that you can understand and integrate quickly.
Advertising-related systems and integrations.
Useful when working with mobile games and monetization.
Examples include:
- Advertisement managers
- Ad provider integrations
- Rewarded ads
- Interstitial ads
- Banner systems
Reusable Firebase-related systems for Unity projects.
Includes systems such as:
- Firebase initialization
- Friend systems
- Leaderboards
- Backend-related utilities
Common gameplay and project-level managers.
Examples include:
- Daily Tasks
- Fake Leaderboards
- In-App Purchases
- Localization
- Notifications
- Upgrade systems
- Other reusable management systems
A reusable tutorial framework designed to help developers create and manage in-game tutorials.
The repository also contains Editor-side tools related to the tutorial workflow.
The goal is to make tutorial creation easier without rebuilding the same infrastructure for every project.
Unity Editor utilities designed to improve development workflow.
These tools can help with tasks such as:
- Finding missing references
- Project maintenance
- Development utilities
- Texture-related workflows
- Custom Editor functionality
Editor tools are especially useful when working on larger projects where repetitive manual tasks start consuming development time.
Mobile privacy and tracking-related utilities.
Useful when dealing with:
- App Tracking Transparency
- Privacy flows
- Mobile consent requirements
- Advertising-related permissions
Small, reusable scripts that solve common Unity problems.
These are often the simplest and most immediately useful parts of the library.
Examples include:
- Internet connection checking
- UI helpers
- Panel management
- Common Unity utilities
- Small reusable components
This library follows a simple philosophy:
Find → Copy → Understand → Adapt → Ship
You don't always need a complete framework.
Sometimes you just need a small piece of code that solves a specific problem.
That's what this repository is for.
You can clone the repository:
git clone https://github.com/TolgaGame/Unity-Code-Library.gitThen open or copy the required scripts into your Unity project.
You can also browse the repository directly on GitHub and take only the components you need.
- Find the system or utility you need.
- Read the script before integrating it.
- Copy it into your project.
- Adjust namespaces, dependencies, and project-specific settings.
- Test it in your project.
- Improve or extend it for your own needs.
This repository is intended as a developer code library, not a plug-and-play framework.
Some systems may depend on:
- Specific Unity packages
- Third-party SDKs
- Firebase
- Advertisement SDKs
- Unity packages
- Project-specific classes
- Additional configuration
Always check the source code and dependencies before integrating a system into your project.
You may need to modify parts of the code to match your Unity version and project architecture.
This project is especially useful if you:
- Build Unity games regularly
- Work on multiple Unity projects
- Create mobile games
- Want to avoid rewriting common systems
- Need quick prototypes
- Build your own reusable development toolkit
- Like keeping useful solutions in one place
Think of it as a personal Unity toolbox that is continuously growing.
Unity-Code-Library/
│
├── ADS/
│ └── Advertisement related systems
│
├── Editor/
│ └── Unity Editor tools
│
├── Firebase/
│ └── Firebase related systems
│
├── GDPR - ATT/
│ └── Mobile privacy / ATT utilities
│
├── Managers/
│ └── Reusable game and project managers
│
├── Tutorial System/
│ └── Runtime and Editor tutorial tools
│
├── Utilities/
│ └── General purpose Unity utilities
│
├── LICENSE
└── README.md
This repository is intentionally designed to grow.
As new useful solutions are created during development, they can be added to the library so they don't have to be recreated from scratch in future projects.
Over time, the goal is to build a collection of:
- ⚡ Fast solutions
- 🧩 Reusable components
- 🛠️ Developer tools
- 🎮 Game systems
- 📱 Mobile utilities
- 🧠 Useful development patterns
Contributions are welcome!
If you have a useful Unity script, tool, optimization, editor utility, or reusable system that could benefit other developers, feel free to contribute.
Please try to make sure that your code is:
- Reusable
- Understandable
- Properly organized
- Free from unnecessary project-specific dependencies
- Compatible with the intended Unity environment
- Documented when additional setup is required
Have an idea for a useful Unity utility?
Found something that could be improved?
Feel free to open an issue or submit a pull request.
Useful feedback is always welcome.
If you find this repository useful:
⭐ Star the repository
A GitHub star is a simple way to support the project and helps more Unity developers discover the library.
You can also:
- Share it with other Unity developers
- Fork the repository
- Submit improvements
- Report bugs
- Suggest new utilities
This project is licensed under the MIT License.
See the LICENSE file for details.
Created and maintained by TolgaGame.
Built from real-world Unity development needs with the goal of making game development faster, simpler, and more reusable.
Unity Code Library is a collection of practical code for developers who want to spend less time rewriting common systems and more time building games.