menu_bookDocumentation

Libraries

calendar_today May 3, 2026 schedule ~1 min read person patrickjr verified 50

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

  1. Create folder in Libraries/
  2. Add Code/, Assets/, Editor/ as needed
  3. Define classes as normal
  4. Reference from game code

Limitations

  • Libraries cannot reference other libraries
  • No transitive dependencies
  • Each library must be self-contained
Was this helpful?