Prefabs

Structures
Structures, also called RefMaps or Pre-fabs, are pre-constructed assets which contain level geometry and optional scripting events. Structures allow you to reuse common assets without needing to recreate them manually each time.

To add a structure to your map, select the "Browse Structures" menu item under "Assets" on the editor Main Menu. You can then browse the available structures in the Prefab Browser. Click and drag the desired structure from the window to your map to add it to the map.

Since structures are simple maps, you can save a new structure by clicking the "Save As Structure" menu item under the file menu. This will save your current map as a structure. You can also edit any prefab by clicking the "Edit Structure" menu item in the property inspector. This allows you to load a selected structure in the level editor.

When creating a new structure, you should attempt to keep your structure as close to the origin as possible so that it appears correctly when added to new maps.

A video tutorial on prefabs is available here.

Built-in Prefabs
The editor provides several built-in prefabs for you to use:


 * Button prefabs
 * Challenge prefabs
 * Door prefabs