PREFABS TOOL
Group assets and save them for later

Making prefabs is a way to group assets and save designs to re-use them easily later.


WHAT ARE PREFABS?
They are a simple way to group several assets together, in order to save their layout and recreate it easily later. Any group of assets turned into a prefab can be moved, resized or rotated as if they were a single asset.
TYPES OF ASSETS YOU CAN USE
Only Objects, Paths, Patterns, Roofs and Lights can be turned into prefabs.
CREATING A PREFAB
First, place several assets from the list above on your map.

Then, in the Select Tool, select them all, either by drawing a selection box around them or by clicking on them one by one while holding 🡅 Shift .


All the assets now selected are showing a blue selection rectangle around them.

Still in the Select Tool, you can now click on Make Prefab in the left panel.

A new dialogue window will appear. This is how you will save your prefab.

You can type in the name of your prefab, that will be used to find it back later.

You can also change the Set (see that as a folder) the prefab will be saved in, or create a new Set by clicking on + . You can also delete a Set by clicking on - when a Set is displayed in the box.

When everything seems correct to you, you can click on Accept and the prefab will be saved.

From now on, the assets you selected are grouped until you save and reload your map. Clicking on one will select them all at once.

USING PREFABS
Now that you've made a prefab, you can find it in the Prefab Tool, under the set and the name you chose.
To select another set, click on the Set dropdown menu in the left panel of the Prefab Tool.


You can then find your prefab in the set where you saved it.

To use place a prefab on the map, simply click on its name and then click on the map where you want it to be.

In the Select Tool, you can now select any part of the prefab you've placed and it will select the whole prefab.

DELETING AND SPLITTING
You can delete a prefab in a set by clicking on its name and then clicking on Forget . The prefab will then be removed from the list forever.

You can split a prefab that you placed on the map by selecting it in the Select Tool and click on Separate. The assets will then be ungrouped. It will affect only the assets that were selected, not the prefab in the list or the other instances of the prefab on the map.

SHARING PREFABS
It is possible to share prefabs with other Dungeondraft users, as long as they use the same assets as you. You're sharing data and not directly assets.
It will work fine with default assets but if you're using custom packs in the prefab you're sharing, then the other user will need to have the precise same custom pack, otherwise assets will be missing from the prefab. To share the prefab file, go in the top left menu and click on Open User Folder.

In that folder, open the prefabs folder.

The next folders will be your Sets.

The you can select any file from the folder you want and share it with another user over the messaging app of your choice

USEFUL INFO
📌 Good to know 📌
The first time you create a Prefab, the assets will stay grouped on your map only until the next reload. That won't happen when you select a prefab from the list in the Prefab Tool, which will stay grouped unless you separate the assets manually.
A prefab chosen from the Prefab Tool will stay grouped even if you remove it from the list ("Forget" button).
Prefabs in Dungeondraft must not be confused with what custom asset creators sometimes call Prefabs, which are more like a new asset made out of several others, but that you can't separate and that won't appear in the Prefab Tool but in the Objects Tool.
KNOWN BUGS
Version: At least from 1.1.0.6 to 1.2.0.0 Bug description: Copying a prefab results in some odd results. It is better to simply choose the prefab again from the list.
Version: At least from 1.1.0.6 to 1.2.0.0 Bug description: Selecting several prefabs at once and rotating them with the mouse wheel might rotate the individual assets at a different rate from each other. You'll need to rotate each prefab one by one to avoid that. It might also happen when you select only one prefab but it's a lot rarer and no replicable steps have been found yet.
Last updated