Skip to main content
Libraries let you package code and assets into a self-contained unit you can reuse across multiple projects. You can install community libraries, share your own with your organisation, or publish them publicly.

How libraries work

Libraries live inside your project’s Libraries/ folder. Each library has its own Assets/, Code/, and Editor/ subfolders. Your game code and editor code can access every class defined in an installed library. The library cannot access your game code directly. Libraries are not compiled assemblies. When you share a library, you share its source code — everything inside the library folder is included.
Libraries are not downloaded automatically. You download a library to <project>/Libraries/ and commit it to your source control. This means you always have a copy and can modify or delete files as needed.

Why it works this way

Distributing source instead of binaries gives you full control:
  • You can read the code before running it.
  • You can edit or delete files you don’t need.
  • The library won’t disappear because an author unpublished it.

Installing a library

1

Open the Library Manager

In the editor, go to View and open the Library Manager tab.
2

Browse available libraries

The Library Manager shows libraries you can install. Find the one you want.
3

Install

Click Install. The library downloads into your project’s Libraries/ folder.
4

Commit to source control

Add the new library folder to your source control so your team has it too.
You can also use the Library Manager to update or remove installed libraries.

Creating a library

To create a new library, add a new project inside Libraries/ with its own Assets/, Code/, and Editor/ folders. Structure it the same way you would a game project, keeping the code self-contained.
Libraries cannot reference other libraries. If your library depends on another library, that dependency won’t be resolved for users who install yours. Design libraries to be standalone.

Publishing a library

Publish a library the same way you publish any other s&box package:
  1. Right-click the library in Library Manager.
  2. Select Publish Project.
Standard visibility rules apply — your library is only visible inside your organisation until you make it public.