menu_bookDocumentation
Libraries: Reusable Code Packages with Source Sharing
s&box Libraries are self-contained code and asset packages stored in your project's Libraries/ folder. They enable code reuse across multiple projects and can be shared with your organization or the community.
How Libraries Work
- Stored in <project>/Libraries/<library-name>/ with Assets, Code, and Editor subfolders
- Game code references all installed libraries automatically
- Libraries cannot access game code directly (one-way dependency)
- Libraries cannot reference other libraries (no chaining)
- Source code is shared, not compiled assemblies — you can view, edit, and delete anything
Installation
Open the Library Manager from the View menu to browse, install, update, or remove libraries. Downloaded libraries should be committed to source control since they aren't auto-restored.
Publishing
Right-click a library in Library Manager → Publish Project. Standard visibility rules apply (org-only unless made public).
Design Philosophy
- Full control: you own the source, can modify or trim it
- No dependency hell: libraries can't depend on other libraries
- No auto-updates: you control when to update via Library Manager
- Deletable: remove unused assets or code freely
Was this helpful?