Prefabs

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

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

Since prefabs are simple maps, you can save a new prefab by clicking the "Save As" menu item under the "Prefabs" menu. This will save your current map as a prefab. You can also edit any prefab by clicking the "Edit" menu item. This allow you browse a prefab to edit, and then load that prefab in the level editor.

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