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.

Not to be confused with what many custom asset creators call "prefabs", which are in general multiple assets of their library arranged together as a new asset, but that you won't be able to edit yourself.


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.

Prefabs selected from the list in the Prefab Tool will stay grouped even after reloading your map, unlike the first time you grouped the assets.


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.

I promise I didn't plan to have Forge and Forget on the same screenshot at some point :D

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

It's better to zip the file before sharing it, as some apps modify the format name for some reason.


USEFUL INFO

📌 Good to know 📌

KNOWN BUGS

Last updated