Appearance
Chunks tab (World Chunks)
The Chunks tab shows the terrain of the open map as a grid of chunks (the tiles the world is divided into). Here you choose which chunks Z-MOD loads in the editor right now. This choice is called the working set.
- A chunk that is ON is drawn in the 3D view, and you can click and edit what is in it.
- A chunk that is OFF is unloaded from the editor. Its contents are still in your project, but Z-MOD does not draw them, you cannot click them, and brushes stop at its edge.
Use the tab to keep a large world fast while you work on one area of it. Turning a chunk OFF never changes your map. Nothing is deleted, hidden, disabled or left out of the export. It does not create an undo step, and the map is not marked as unsaved.
Screenshots
There are no screenshots of this tab yet. None could be taken from a real run of the editor for this page. A capture script is ready in manual/capture/chunks.ts, but it has not been run yet. Until then, the layout below is described from the editor's source code.
Where to find it
- Click the Map workspace button in the top bar.
- In the left panel, click the Chunks tab. It is the fourth tab, after Hierarchy, Assets and Gameplay (see The left panel).
The tab has no toolbar button and no keyboard shortcut. It is not a tool you arm in the 3D view. It is a panel, and it works whatever tool is armed. When you leave the tab, the working set stays as you left it. When you come back, the tab shows the same grid.
Before you start: the map needs a terrain
The grid is the chunk layout of the map's terrain. If the map has no terrain, the tab only shows:
This map has no terrain, so it has no world chunk grid.
Create a terrain first (Hierarchy › Terrain › +, see Create the terrain).
How many chunks a terrain has
The terrain gets its chunks when you create it, from Chunk Size in the Create Terrain dialog. Z-MOD divides the world into equal chunks whose size is as close as possible to the size you type. Along each axis, the number of chunks is world size ÷ chunk size, rounded to the nearest whole number. The minimum is 1 and the maximum is 128.
- In the dialog, Chunk Size starts at the world width (500 for the default 500 × 500 world). So by default a terrain has one chunk (1 × 1), and the Chunks tab shows a single cell.
- Example: a 10 000 × 7 000 world with a chunk size of 1 000 gives 10 × 7 chunks, each 1 000 × 1 000.
- Example: a 10 000 × 7 000 world with a chunk size of 3 000 gives 3 × 2 chunks (10 000 ÷ 3 000 ≈ 3.3 → 3; 7 000 ÷ 3 000 ≈ 2.3 → 2). Each chunk is then 3 333.33 × 3 500, not 3 000 × 3 000.
The Chunks tab only shows this layout. It cannot change it. To change it, select the terrain and use Convert to Chunked Terrain… (one-chunk terrain) or Repartition Terrain… (terrain that already has chunks). These buttons are in the World Chunks section of the Terrain Inspector. That section appears at Inspector complexity Medium or higher. Changing the layout resamples the terrain, as one undo step. The button is disabled while the terrain is locked ("The terrain is locked. Unlock it to repartition.").
What ON and OFF mean
| When a chunk is OFF… | |
|---|---|
| The terrain tile of that chunk | is not drawn. Its mesh is released from memory, not just hidden. When you turn the chunk ON again, the tile is rebuilt exactly as it was. |
| Objects (models, prefabs) | are drawn while any chunk they overlap is ON. A building across two chunks stays drawn, once, while either chunk is ON. |
| Roads, rails, utility lines, dams, zone outlines | stay one item each. Only the part over ON chunks is drawn, and the edge of the drawn part can look jagged. The road itself is never cut in the document. |
| Water | while any chunk is OFF, the world water is drawn only over ON chunks. |
| Vegetation and scatter | instances that stand in OFF chunks are not drawn. When you turn the chunk ON again, the same instances come back, in any order. |
| Gameplay helpers (entity instances, spawns, volumes, markers, loot, vehicle spawns) | are not drawn and cannot be picked over OFF chunks. Their data does not change. |
| Content placed outside the terrain | has no chunk, so it is always drawn, whatever you turn OFF. |
| Turning a chunk OFF is not | |
|---|---|
| Deleting | The terrain, objects, roads and vegetation all stay in the map. |
| Disabling | An item in an OFF chunk keeps its enabled state, and the game still builds it. |
| Hiding a layer or group | The Hierarchy organization is untouched, and the Hierarchy still lists every item. |
| Excluding from export | Export packages every chunk, whatever is ON in the editor. |
| A change to the map | No undo step, no unsaved-changes dot. The ON/OFF state is never written into the map file. |
All Off is allowed too. The 3D view may then show no world at all, only the reference ground. Nothing in the world has changed.
The parts of the tab
From top to bottom, the tab shows the items below. Level is the Inspector complexity needed to see an item. "All" means the item is always shown.
| Part | What it shows or does | Level |
|---|---|---|
| World Chunks (title) | The section title. | All |
| Grid Size | The number of chunks along X × along Z, for example 10 × 7. Read only. | Advanced |
| Chunk Size | The real size of one chunk along X × along Z, in world units (metres), rounded to 2 decimals, for example 3333.33 × 3500. Read only. | Advanced |
| N of M loaded | How many chunks are ON out of the total, for example 9 of 100 loaded. | All |
| Driven by World Regions… note | Shown only while World Regions streaming decides the working set. | All (conditional) |
| All On | Turns every chunk ON. | All |
| All Off | Turns every chunk OFF. | All |
| Load Around Camera | Turns ON the square of chunks around the chunk the camera is looking at, and turns every other chunk OFF. | All |
Radius 1 2 3 | The size of the square for Load Around Camera. | Medium |
| The camera is not over the world. | Shown when the point the camera looks at is outside the terrain (or the 3D view has not reported a camera yet). | All (conditional) |
| The grid | One cell per chunk. Click a cell to turn that chunk ON or OFF. | All |
| Legend | Chunk ON, Chunk OFF, Camera Chunk, Selection, and the axis label X →. | All |
| Note | "Chunks ON are materialized in the editor. Chunks OFF remain in the project…": a reminder of the rules on this page. | All |
At Normal complexity, Grid Size, Chunk Size and Radius are hidden, and a Show more (2) footer appears below the buttons. See Inspector complexity and Show more.
Property reference
| Name | Type | Verified purpose | Values, default | Depends on / effects |
|---|---|---|---|---|
| Grid Size | Read-only text | Chunk count of the terrain's layout. | 1 to 128 per axis. Default terrain: 1 × 1. | Changes only with Convert / Repartition in the Terrain Inspector. |
| Chunk Size | Read-only text | World width ÷ chunks along X, and world length ÷ chunks along Z. | Metres, 2 decimals. Default terrain: 500 × 500. | Same as above. |
| N of M loaded | Status text | Number of ON chunks / total chunks. | — | Updates on every toggle, button, Region load and automatic turn-on (selection, Frame Selected). |
| All On | Button | Every chunk ON. | — | Takes manual control from Region streaming. Remembered for this terrain. |
| All Off | Button | Every chunk OFF. | — | Takes manual control. Selected items that are no longer drawn are deselected. |
| Load Around Camera | Button | The square of chunks around the camera's chunk ON, all other chunks OFF. | — | Uses Radius. Does nothing when the camera looks outside the terrain. Takes manual control. One-shot: nothing follows the camera afterwards. |
| Radius | 3 toggle buttons | Half-width of the square, in chunks. | 1 = 3 × 3, 2 = 5 × 5, 3 = 7 × 7. Default 1. The active button is highlighted. | Remembered while the project is open, for all maps. Back to 1 when a project is (re)loaded. Selecting a radius loads nothing by itself. |
| Grid cell | Toggle button, one per chunk | Turns one chunk ON or OFF. | Highlighted = ON. | Takes manual control. Turning a chunk OFF deselects what is no longer drawn. |
Reading the grid
The grid is laid out like a map seen from above:
2 [ ] [on] [on] [ ]
1 [on] [on] [on] [ ] Z ↑ rows: +Z at the TOP
0 [ ] [on] [on] [ ]
Z ↑ 0 1 2 3 X → columns: +X to the RIGHT- The numbers on the left are the Z index of each row. The top row is the highest Z.
- The numbers along the bottom are the X index of each column. They start at 0 on the left. The bottom-left corner holds the label Z ↑.
- Chunk [0,0] is the bottom-left cell. It is the corner of the world with the lowest X and lowest Z. The terrain is centred on the world origin, so chunk [0,0] starts at (−width/2, −length/2), not at 0,0.
- All cells are the same size and square in the panel, even when the chunks are not square in the world.
Cell markings
A cell can carry several markings at once:
| Marking | Meaning |
|---|---|
| Accent-coloured fill and border | Chunk ON: loaded in the editor. |
| Plain cell | Chunk OFF: not loaded. |
| Thick inner border | Camera Chunk: the chunk under the point the map camera is looking at. It follows the camera as you move it. |
| Dashed outline | Selection: chunks the selected item needs. |
The camera and selection markings are only highlights. They never turn anything ON or OFF.
The Selection marking appears for these selected items: placed objects, entity instances, entity spawns, gameplay volumes, gameplay markers, loot spawn points, loot areas, loot containers, vehicle spawn points and vehicle spawn areas. For an object, the marked chunks are every chunk its bounds overlap. For the other kinds, they are the chunks their position and shape reach. Nothing is marked for an item outside the terrain, or for other kinds (roads, buildings, splines…).
Cell tooltip
Point to a cell to see what it covers in the world, for example:
Chunk [5,7] · X 0…1000 · Z 2000…3000 · Chunk ON
- [5,7]: the chunk's X and Z index.
- X 0…1000 and Z 2000…3000: the chunk's edges in world coordinates (metres), rounded to 2 decimals. These are the same coordinates as the Position of an object in the Inspector.
- Chunk ON / Chunk OFF: its current state.
The tooltip is built when you point to the cell, so it always shows the current state.
Turning chunks ON and OFF
One chunk: click its cell
Click a cell. An OFF chunk turns ON, and an ON chunk turns OFF. The 3D view updates by itself: the tile and its contents are built or released. The counter (N of M loaded) changes at once.
- Each click toggles one chunk. There is no drag-to-paint and no Shift- or Ctrl-click range selection.
- The cells are normal buttons. With the keyboard, you can usually move to a cell with Tab and press Enter or Space. This is standard button behaviour and has not been checked in a real run.
- A toggle is not an undo step. Ctrl+Z does not turn a chunk back. Click the cell again instead.
All chunks: All On / All Off
- All On turns every chunk ON. On a large world, this builds every tile and everything in it, which can take a long time and use a lot of memory.
- All Off turns every chunk OFF. The 3D view shows the reference ground. The Hierarchy still lists every item.
Load Around Camera
Load Around Camera turns ON exactly the square of chunks around the Camera Chunk (the cell with the thick inner border), and turns every other chunk OFF.
- Move the 3D view camera until the area you want is in the centre of the view. Watch the Camera Chunk marking move across the grid.
- (Medium complexity or Show more) Choose a Radius: 1 for 3 × 3 chunks, 2 for 5 × 5, 3 for 7 × 7.
- Click Load Around Camera.
Details:
- The camera chunk is the chunk under the point the map camera is looking at on the ground (the camera target), not under the camera's own position.
- At the edge of the world, the square is cut off, never shifted. Radius 1 on a corner chunk loads 2 × 2 chunks, and on an edge chunk 2 × 3 or 3 × 2.
- If the world is smaller than the square (for example 4 × 4 with radius 2), every chunk is turned ON.
- It is a one-shot action. When you move the camera afterwards, nothing loads or unloads. Click the button again for the new place.
- When the camera looks outside the terrain, the tab shows "The camera is not over the world." Clicking Load Around Camera then does nothing: no chunk changes and no message appears. Move the camera back over the terrain first.
- Clicking a Radius button only sets the size. It does not load anything until you click Load Around Camera.
What is ON when you open a map
- 16 chunks or fewer (for example 1 × 1, 2 × 2, 4 × 4): every chunk starts ON. A one-chunk terrain always shows its one tile.
- More than 16 chunks: only the 3 × 3 around the chunk that contains the world origin (0, 0) starts ON. So a big world never loads everything when you open it.
- Your last choice is remembered. As soon as you change the working set, Z-MOD saves it for this terrain and this grid. Next time you open the map, even after you restart the editor, the same chunks are ON. This is saved on this computer (in the editor's local storage), not in the project. The last 32 grids are remembered, and the oldest are forgotten first.
- After a Convert / Repartition, or the undo of one, the grid is different, so it starts again from the default above. Moving the project to another computer also starts from the default.
- The Radius is not saved: it goes back to 1 each time a project is opened or reloaded.
Manual control and World Regions streaming
The tab works in one of two states:
| State | How you see it | Who decides what is ON |
|---|---|---|
| Manual (normal case) | No extra note. | You: cell clicks, All On / All Off, Load Around Camera. |
| Driven by World Regions | The note "Driven by World Regions: chunks follow the loaded Regions…" appears under the counter. | The World Regions tool's streaming. A chunk is ON while any loaded Region overlaps it. The grid and counter follow the Regions as they load. |
Regions drive the chunks while the Streaming setting of the World Regions tool (toolbar group World › World Regions) is On, or Auto on a world of more than 4 Regions.
While Regions drive the chunks, any action in this tab takes manual control. This covers a cell click, All On, All Off and Load Around Camera:
- The chunks shown at that moment become your manual working set, so the view does not jump.
- The World Regions Streaming setting switches to Off, and this is remembered.
- Your action is then applied to the manual set.
To go back to streaming, set Streaming to On or Auto again in the World Regions tool.
While Regions stream, Region loading has some effects that manual chunks do not:
- A Region loads in stages: terrain first, then infrastructure (roads), then structures, then vegetation, then details. A chunk's terrain can be ON before its trees are. The grid and counter show the terrain stage.
- Selecting an item in an unloaded area asks for its Regions instead of turning chunks ON. The item stays selected while they load.
Selection, Frame Selected and the Problems panel
Z-MOD keeps the selection and the working set consistent by itself. None of this creates an undo step or marks the map unsaved.
- When a chunk turns OFF, every selected item that is no longer drawn is deselected. You never see a gizmo, a handle or an Inspector for something the editor does not draw. An object that also overlaps a chunk that is still ON stays selected.
- When you select an item whose chunks are OFF, those chunks are turned ON, and no others are turned OFF. You can select from the Hierarchy, a search, or the Problems panel. Z-MOD turns ON every chunk the item needs. If the item would need more than 9 chunks (a long road or spline, for example), only the 3 × 3 around its start is turned ON. This works for objects, gameplay items, buildings, prefab instances, splines, exterior boundaries and props, and roads.
- Frame Selected (F in the 3D view) turns ON the chunks the selected item needs, waits for it to be built, then frames it.
- Focus in the Problems panel works on a problem that has a world location. It switches to the Map workspace, selects the problem's subject and turns ON the 3 × 3 around that location, without turning anything OFF. Then it centres the camera there. While Regions stream, it loads the Region there instead.
Editing near OFF chunks
Tools edit only what is loaded:
- A terrain brush (sculpt, material paint and the other terrain brushes) can only start on an ON tile, because that is where the pointer hits the ground.
- A brush near the edge of the loaded area stops at the edge. Nothing in an OFF chunk is written. The border line shared with an OFF chunk is frozen too, so no crack opens when the chunk comes back.
- Previewed terrain changes (stamp, ridge, river and coast paths) and wetland changes follow the same rule.
- Procedural vegetation and environment scatter strokes leave everything in OFF chunks exactly as it was.
- Content in OFF chunks cannot be clicked in the 3D view. Select it from the Hierarchy, which turns its chunks ON (see above).
To edit across a chunk border, turn both chunks ON first.
Inspector complexity and Show more
The tab follows the Inspector complexity chosen in File › Preferences… › General › Inspector Complexity:
| Complexity | Shown in this tab |
|---|---|
| Normal | Counter, All On, All Off, Load Around Camera, grid, legend, note. A Show more (2) footer offers the two hidden items. |
| Medium | Everything in Normal, plus Radius. A Show more (1) footer offers Grid Size · Chunk Size. |
| Advanced | Everything, with no footer. |
- Click Show more (N) to show the hidden items without changing your preference. Items shown this way get a thin accent rule. Click Show less to hide them again. This reveal is forgotten when you switch to another left-panel tab.
- Point to Show more to see the names of the hidden items.
- If Radius is hidden but set to something other than 1, the footer says ⚙ 1 hidden setting modified. Load Around Camera still uses that radius, even while it is hidden.
Messages
| Message | When | What to do |
|---|---|---|
| This map has no terrain, so it has no world chunk grid. | The open map has no terrain. The message also appears if the terrain's chunk layout is not valid: the counts must be whole numbers from 1 to 128 per axis. | Create a terrain. If a terrain exists and the message stays, check the Problems panel for terrain problems. |
| N of M loaded | Always. | Information only. |
| Driven by World Regions: chunks follow the loaded Regions. … | World Regions streaming decides the working set. | Use the World Regions tool, or click in this tab to take manual control. |
| The camera is not over the world. | The camera target is outside the terrain, or the viewport has not reported it yet. | Move the camera over the terrain before Load Around Camera. |
No problem or warning is ever reported for a chunk being OFF, for All Off, or for the camera being outside the loaded area.
Typical tasks
Work on one area of a large world
- Open the Chunks tab.
- Click All Off.
- Click the cells of the area you want to edit. Point to a cell first to check its X/Z range in the tooltip.
- Edit. Brushes stop at the edge of the cells you turned ON.
- When you are done, there is nothing to save or undo for the chunks. The map's unsaved-changes dot reflects only your edits.
Load the area you are looking at
- Move the camera so the area is in the centre of the 3D view. The Camera Chunk cell follows it.
- If you need more than 3 × 3, open Show more (or use Medium complexity) and click Radius 2 or 3.
- Click Load Around Camera.
Find and edit something that is in an OFF chunk
- Find the item in the Hierarchy (it lists everything, ON or OFF), or open its problem in the Problems panel.
- Select it. Its chunks turn ON by themselves, and a dashed Selection outline marks them in the grid.
- Press F (Frame Selected) to bring it into view.
Find out which chunks an object touches
Select the object. The cells with a dashed outline are the chunks its bounds overlap. Point to them to read their world ranges.
Take over from World Regions streaming, and give it back
- While the Driven by World Regions note is shown, click any cell, or All On / All Off / Load Around Camera.
- The note disappears, streaming switches Off, and you now control the chunks.
- To stream again, open the World Regions tool and set Streaming back to Auto or On.
Divide a one-chunk terrain so the tab becomes useful
- In the Hierarchy, select the terrain.
- In the Inspector, find the World Chunks section. At Normal complexity, use the Inspector's Show more first.
- Click Convert to Chunked Terrain…, type a target chunk size, check the resulting grid, and confirm.
- Return to the Chunks tab. It now shows the new grid, starting from the default working set.
Common mistakes
- "My objects disappeared." They are in OFF chunks. Check the grid or the counter, then click All On or turn the cells ON. Nothing was deleted.
- Expecting Ctrl+Z to undo a toggle. Chunk changes are not in the undo history. Click the cell again.
- Turning chunks OFF to keep content out of the mod. OFF chunks are still exported in full. To leave content out, delete or disable it.
- Turning chunks OFF to hide clutter while you work. It works for viewing, but OFF content also cannot be clicked or edited. To hide things you still want to edit around, use Hierarchy layers and groups instead.
- A brush that "stops for no reason". It reached an OFF chunk. Turn that chunk ON.
- Load Around Camera does nothing. The camera is looking outside the terrain ("The camera is not over the world."). Move it back over the terrain.
- Clicking a Radius button and expecting chunks to load. Radius only sets the size. Click Load Around Camera afterwards.
- A click in the grid turned World Regions streaming Off. This is expected: any action here takes manual control. Turn streaming back on in the World Regions tool.
- Looking for a field to change the grid size here. The layout is changed only in the Terrain Inspector (Convert to Chunked Terrain… / Repartition Terrain…).
- Clicking All On on a very large world. Every tile and everything in it is built. Prefer Load Around Camera or a few cells.
Related tools
- Map workspace: the left panel, the terrain and the toolbar.
- Create the terrain (tutorial step 4): Chunk Size and the resolutions per chunk, chosen when the terrain is created.
- Terrain Inspector › World Chunks: Convert to Chunked Terrain… / Repartition Terrain… (see Terrain).
- World Regions (toolbar World › World Regions): Region streaming, which can drive this grid.
- Problems panel: Focus turns ON the chunks around a problem.
Verification notes
This chapter was written from the editor source only: the world-chunk-grid component, WorldChunkWorkspaceService, ChunkSelectionGuardService, MapPresenceService, the World Regions streaming service, the Inspector complexity directives and the en-US texts. The following were not checked in a real run of the editor:
- what the tab looks like (no screenshots were taken);
- moving between cells with the keyboard (Tab, then Enter or Space);
- exactly how long a large world takes to load or unload chunks.
The editor's design notes are out of date here
The editor's internal design notes (docs/world-chunking.md, "Known limitations") say the working set is not kept between sessions. The current code does keep it: browser local storage, key survivor-editor.chunk-working-sets.v1, the last 32 grids. This page follows the code.