Models
A model is a room or piece made of Blocks. Models are built, saved and loaded as one unit.
Creating a model
Model → New in the top bar
A new Block joins the model you draw it on. If there is no model under it, it joins the selected model or starts a new one.
Building a model
Building turns a model's Blocks into the meshes and colliders the game uses. Select the model or one of its Blocks to see its build state in the Inspector.
| State | Meaning |
|---|---|
| Built | Up to date |
| Not built | Changed since the last build |
| Not built | Never built |
| Button | Action |
|---|---|
| Build | Rebuilds the whole model from its Blocks |
| Auto | Rebuilds about a second after you stop editing |
Model → Build all builds every model in the scene.
In a game build
When you build your game, RAPTOR leaves the editing data of every baked model out of the build. Your scene files keep all of it. The build keeps the baked meshes, their colliders and lighting, and every GameObject, so your scripts and Logic still find them.
A model whose bake is not current keeps all of it in the build. Before the build starts, RAPTOR lists such models in the Console and asks once: Build models now, Continue build or Cancel. Turn the check off with Settings → Play → Check models before a build.
Model settings
Select a model to see its settings in the Inspector.
| Setting | Effect |
|---|---|
| Transform | Holds Position, Rotation and Scale |
| Output | Holds Collider and Single mesh |
| Lightmap | Holds Planar charts, UV padding and Merge charts |
| Material | Holds the model's default material. Use the active material replaces it with the active one |
Saving a model
Model → Save in the top bar. Or the model in the Hierarchy.
The model is built if needed and saved as a prefab in Assets/RAPTOR Data/Models/<name>.
| Command | Action |
|---|---|
| Save model | Saves the model. Asks before overwriting a model with the same name |
| Save & unload | Saves the model and removes it from the scene. This cannot be undone |
| Duplicate as variant | Saves a prefab variant of the model |
Lightmaps stay with the scene
A saved model does not keep its lightmaps. Bake again after loading it.
The Models browser
Model → Open models opens the Models drawer.
| Button | Action |
|---|---|
| All models | Shows every saved model |
| In scene | Shows the models in the open scene |
| Categories | Shows your categories. New category adds one |
| Uncategorised | Shows models without a category |
a model onto a category to add it there.
Filter shows only models in one state:
| State | Meaning |
|---|---|
| Not saved | In the scene but never saved |
| Legacy | Made in an older version of RAPTOR. It is read-only |
| Baked | Stored lighting matches the model |
| Stale | Changed since its lighting was baked |
| Unbaked | Has no stored lighting, so it loads dark |
Select a model to see its details:
| Button | Action |
|---|---|
| Load into scene | Loads it at the world origin and selects it |
| Select in scene | Selects it when it is already loaded |
| Save | Saves it |
| Save & unload | Saves it and removes it from the scene |
| Show in Project | Shows the prefab in Unity's Project window |
To rename a model, its title in the details. Or its tile → Rename. Its folder and files follow the new name. a tile → Move to to add it to a category.