Library and collections
Collections hold the resources you reuse across levels. A level never refers to a collection: importing copies the resource inside, and the level plays anywhere
What a collection is
A collection is a folder of reusable resources. It can hold resources of seven kinds:
| Kind | How it is stored |
|---|---|
| prefabs, themes, shapes, effects | data, one file per entry |
| textures, fonts, audio | media files |
A collection is not tied to a level. It sits on your device and is available in any level you open
Sources
The library shows resources from three sources. Each is a filter chip above the list:
| Chip | What it is | Can be changed |
|---|---|---|
My library | the device library: resources/prefabs, themes, shapes, effects | yes |
My collections | your own collections, resources/collections | yes |
Workshop | the collections you are subscribed to in Steam Workshop, read in place. Steam builds only | no |
A read-only collection is changed like this: its entries are copied into a collection of your own
The "Library" tab
Library is the last tab on the editor's home screen, after Community
A narrow column of buttons picks the kind:
CollectionsPrefabs,Themes,Shapes,EffectsTextures,Fonts,Audio
To the right of it, the page title (on the left) and its buttons (on the right) stand in one row. The list is below. An empty list says so in its middle
On the pages of the seven kinds, from Prefabs to Audio, Target collection takes a separate full-width row under the title. The source chips stand in the row under it
A Library window (a collection's card, a texture's picture, the share window) closes with the cross in its corner. There is no Close button
Every row is a button. Pressing it does the main thing for its kind:
| Kind | Pressing a row |
|---|---|
| collection | opens its page |
| theme, shape, effect | opens the editor |
| texture | shows the picture and its size |
| prefab, font, audio | nothing. An audio row has its own play button |
The small buttons on the right of a row are the other actions, and the bin icon deletes or removes
Open folder shows the folder of the current page in the system file manager. Available only on Windows, macOS and Linux
Collections
Open folder and Refresh stand to the right of the page title. New collection and Import archive are in a separate row under it, aligned right
New collectioncreates an empty collection and opens its cardImport archiveadds a collection from a.zipor.tar.gzfile or from a password-protected archive: a.zipwith its own password,.zip.gpgor.tar.gz.gpg. If that collection is already on the device, the game asks whether to replace it
A password-protected archive opens the Password required window: This archive is encrypted. Enter its password to open it. Enter the password and press Open.
A wrong password shows That password does not open this archive. Try again
Open folderopensresources/collectionsRefreshreads the folders again
Your own collections have Edit and the bin icon. The bin asks first and then deletes the collection with all its files
A collection's card
Edit opens a window with the collection's card:
Name,DescriptionAuthors, comma separatedLicense:Not statedor one of the typical licencesCoverpicks a png image. The line next to it says whether there is a cover
Save writes the card. Cancel, the cross or a click outside the window discards the changes
A collection's page
| Element | What it does |
|---|---|
Back | returns to the list |
Edit | opens the card. Only for your own collections |
Share | opens the share window: Archive as .zip or .tar.gz, with or without a password, and in the Steam build also Steam Workshop for a collection of your own |
Open folder | opens the collection's own folder |
Delete | deletes the collection, asking first |
Below are the contents. A row opens the entry the same way its kind's page does, and the bin icon removes the entry from the collection
A read-only collection says Read only. Copy its entries into a collection of your own to change them
More on Share - Publishing
Prefabs, themes, shapes, effects
Each of these pages shows every entry from every source. The chips narrow the list
Target collection picks one of your own collections. By default it is Not chosen. Once a target is picked, every row from somewhere else gets Copy
A theme, shape or effect opens in the same editor as in the level settings. Save writes the change where the entry lives: into My library or into your collection.
An entry from the Workshop opens read only, and Save is off. To change it, copy it into a collection of your own
Create makes a new theme, shape or effect in the editor. The entry is saved into the target collection, or into My library if no target is picked. Prefabs are made in a level, and they have no Create
Entries you can change have the bin icon, and it asks first
Every row has Share. The button packs the entry with everything it needs (for example, a prefab's shapes, textures and nested prefabs) into a .zip or .tar.gz, with or without a password, as a collection of one entry. The recipient imports that file through Import archive, like any collection
Open folder opens the device library folder for that kind, for example resources/themes
Textures, fonts, audio
These pages show the files of all collections. There is no personal library for files, so these kinds live only in collections
- a texture row shows the picture
- an audio row has a play button. One track plays at a time, and it stops when you leave the page
- a font row has no preview
Add file puts a file from the device into the target collection, so without a target the button is off. A texture is png or jpg, a font ttf or otf, audio mp3, wav or ogg.
If the collection already has a file with the same bytes, nothing is added, and the game says so
Rows have Copy and the bin icon
What a copy takes along
A copy takes everything the entry needs: a prefab's shapes, textures, fonts and nested prefabs, an effect's particle shape. The authorship information of those resources goes along with them too
The "Collections" tab
Collections is a level settings tab, right after Prefabs. At the top there are two modes: Import and Build a collection
Import
- The tab shows a list of collections. Press the one you need
- Tick the entries you need.
AllandNonetick everything or clear all ticks - The line
Selected: N, dependencies added: Mshows what will come into the level. Dependencies are added on their own - Press
Import
The whole import is one undo step
Textures, fonts and audio get new ids in the level, and their files are copied into the level folder under a unique name. A file the level already has byte for byte is not copied a second time: the import takes the level's own texture, font or track
Build a collection
IntopicksA new collectionor one of yours. A new one takes its name from theNamefield- Tick the level's resources, of any of the seven kinds
- Press
Build
A new collection gets the level's authors
A collection cannot be built from a protected level. More - Export and protection
Resource picking and search
Search and the resource picking windows have a Library tier for prefabs, themes, shapes and effects. It shows all sources.
The picking windows are the shape, collider, effect and theme fields and Place Prefab…
Picking an entry from the library imports it into the level with its dependencies and assigns it. A conflict asks the same question as on the "Collections" tab
The library browsers inside the level's resource tabs work the same way and show the source chips. More - Level resources
Conflicts
An imported entry may already be in the level with the same id:
- the same content - nothing needs to be done
- different content - the
Already in the levelwindow opens
The window lists every conflict, each with an Import as a copy toggle:
| Choice | Result |
|---|---|
| keep (toggle off) | the level's version stays and is used |
Import as a copy | the collection's version is added under a new id. Everything imported together with it refers to the copy |
Keep all and Copy all set all toggles at once. Import applies the choice, Cancel imports nothing
No version wins silently. Every conflict with different content is decided in this window
Authorship
The records about a level's resources cover themes, effects, shapes and prefabs as well as textures, fonts and audio. Importing copies the needed records into the level, so authorship arrives together with the resource
More - The resource record
On disk
Collections live in resources/collections/<collection-guid>/ in the game's data folder. This is the same resources folder next to levels where the device library lives. More - The level folder and backups
| Path | What it holds |
|---|---|
collection.json or collection.blob | the manifest: name, description, authors, licence, the texture, font and audio entries and the authorship information of everything inside |
cover.png | the cover, optional |
prefabs/, themes/, shapes/, effects/ | one <guid>.json or <guid>.blob per entry, the same files as in the device library |
media/ | texture, font and audio files |
A collection is passed on as an archive: Share on its page, Import archive in the list.
An archive that is not a collection is rejected
Next: Publishing, Reuse: prefabs, copying, generators, The resource record