Build a Dino Dungeon with Prehistoric Prefabs
Unverified — this example may not compile as-is.
The Verse code below did not pass our automated compile check, so it isn't marked verified and is hidden from the guide listing. The explanation may still be useful, but treat the code as a draft and adapt it before use.
Build a Dino Dungeon with Prehistoric Prefabs
Do you want to build a dungeon filled with giant stone ruins? Maybe you want a secret cave for a monster? You can do this fast. You do not need to place every brick by hand. Fortnite Creative has "Prehistoric Prefabs." These are pre-made ancient structures. You just drag and drop them. Let's build a cool arena today.
What You'll Learn
- What a Prefab is.
- How to find Prehistoric structures.
- How to place and move them.
- How to make your own unique level.
How It Works
Imagine you are playing with LEGO bricks. You can build a car from scratch. That takes a long time. Or, you can buy a LEGO set. The box has all the pieces ready. You just snap them together.
In Fortnite, a Prefab is like that LEGO set. It is a group of objects placed together. It is already built. You do not need to code anything to use them. You just place them in the world.
Prehistoric means "very old." These prefabs look like ancient temples. They look like stone caves. They look like dinosaur bones. They are perfect for adventure games.
Think of a Scene Graph as a family tree. Every object in your game is a child. Some children have their own children. A Prefab is like a whole family. When you place the Prefab, you place the parent and all its children. They move together. They stay together. This keeps your level organized.
Let's Build It
We will build a "Colossal Coliseum." This is a big stone arena. Players will fight inside it. We will use the Coliseum category.
Follow these steps in UEFN.
- Open the Prefabs menu.
- Search for "Coliseum."
- Drag one onto your map.
- Use the move tool to place it.
Here is how the code works behind the scenes. We do not write code to place it. But we need to know where it lives. It lives in the World. The World is the big container. The Prefab is a Component. A Component is a part of an Entity. An Entity is an object in the game.
# This comment block shows how Verse thinks about
# a placed prefab device at runtime.
# In practice, you drag the prefab into the level in
# the UEFN editor — you do not spawn it in Verse code.
# The snippet below shows how a Verse manager device
# can hold a reference to a creative_prop that was
# placed in the editor, so you can move or query it.
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation }
# 1. Declare a manager device that lives in the World.
coliseum_manager := class(creative_device):
# 2. The Prefab is represented here as a creative_prop.
# Drag your placed Coliseum prefab into this slot
# in the UEFN Details panel.
# note: creative_prop is the closest real Verse type for
# a placed prop/prefab you reference from a device.
@editable
MyColiseum : creative_prop = creative_prop{}
# 3. OnBegin runs when the game starts.
# We log the prefab's current world position so we
# know it loaded correctly — like giving the Entity
# a name tag so we can find it later.
OnBegin<override>()<suspends> : void =
MyColiseum.Show() # Make sure the prefab is visible.
Log("Coliseum is in the game!")```
In the editor, you do not type this. You click buttons. But knowing this helps. It means the Prefab is a single object. You can rotate it. You can scale it. You can delete it. It stays as one piece.
## Try It Yourself
Now it is your turn. You are the architect.
**Challenge:**
Build a "Lazy Lagoon" area. Find a Prefab that looks like water or a swamp. Place two of them next to each other. Make a path between them.
**Hint:**
Look for the "Lazy Lagoon" category in the Prefabs menu. Use the rotate tool to face them toward the center.
## Recap
* **Prefabs** are pre-made structures. They save you time.
* **Prehistoric** prefabs look like ancient ruins.
* A Prefab is one **Entity** with many parts.
* You place them in the editor. No coding needed to start.
Have fun building your ancient world!
## References
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-prehistoric-prefabs-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-prefabs-and-galleries-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite/prehistoric-prefabs-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-futuristic-prefabs-in-fortnite-creative
* https://dev.epicgames.com/documentation/en-us/fortnite/futuristic-prefabs-in-fortnite-creative
Verse source files
- 01-device.verse · device
Turn this into a guided course
Add using-prehistoric-prefabs-in-fortnite-creative to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.
References
Original tutorial generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.