menu_bookDocumentation
Libraries
Libraries
Create reusable, shareable code and asset libraries.
Structure
Libraries live in Libraries/ folder:
CODE
MyProject/
Libraries/
MyLibrary/
Assets/
Code/
Editor/How It Works
- Game code references all installed libraries
- Libraries cannot access game code
- Source code is shared (not compiled assemblies)
- Commit libraries to source control
- Libraries cannot reference other libraries
Library Manager
View → Library Manager to:- See installed libraries
- Browse and install available libraries
- Update or remove libraries
- Publish your own libraries
Publishing Libraries
Right-click library → Publish Project
- Visibility follows project rules
- Make public to share with community
- Or keep private to organization
Benefits
- Full control — View, edit, delete what you don't need
- No dependency issues — Won't disappear or break
- Asset customization — Modify included assets
- Code transparency — See exactly what you're using
Creating a Library
- Create folder in Libraries/
- Add Code/, Assets/, Editor/ as needed
- Define classes as normal
- Reference from game code
Limitations
- Libraries cannot reference other libraries
- No transitive dependencies
- Each library must be self-contained
Was this helpful?