Editor tools
The Matter World Editor lets you create and change .matterworld documents
directly in the Unity Scene View. It works in Edit Mode, supports normal Unity
Undo, and can run a disposable simulation preview before you decide whether to
keep the result.
Component inspectors
Matter uses compact Unity controls in light and dark themes. Common settings are visible first; detailed supported controls live in Advanced and runtime information in Diagnostics. Foldouts and authoring tabs retain their state. The layout uses the available content width, including the Substances window.
Use Find settings to search labels, section names and tooltips. Matching sections open temporarily; clearing the search restores your foldouts. Phase and backend restrictions still apply, and database lists retain their complete order. Sections provides Expand Sections and Collapse Sections. The ? on each section opens its guide. These navigation actions do not change authored values.
Section labels and Unity icons identify their purpose alongside color: cyan for world/simulation, violet for material appearance, blue for fluids, gold for lighting, coral for temperature, and grey for references, Advanced and Diagnostics. Badges identify shared, local, generated, mixed and locked settings. Warnings stay beside affected fields; Show Setting reveals the first issue.
- MatterSimManager: References, World Dimensions, Backend and Startup, then Solver and Heat. Tick rate uses Hz; dimensions use cells; mapping uses world units. Heat Diffusion displays a percentage without rounding the stored value. CPU workers appear for CPU use. Allocation controls explain why they are locked while initialized; save or close a dirty World Editor document before changing its allocation. Advanced contains chunk size, edit capacity and catch-up limits.
- MatterRenderer / Rendering Profile: all appearance settings are authored in a required profile, grouped into Look, Fluid and Lighting. Select Profile opens that asset; Duplicate and Assign creates a separate copy. Create and Assign Profiles creates the required assets when a reference is missing. The renderer exposes scene references and effective smoothing status. Select Profiles opens every distinct asset in a mixed renderer selection. Surface smoothing is authored in Rendering Profiles. Runtime tuning never changes the shared asset.
- Substance Definition / Database: Identity, Simulation Behavior, Thermal Behavior, Appearance, Textures and Object Interactions. Thermal Behavior separates Starting Temperature, Active Heating/Cooling and Phase Changes. Temperature uses °C and source strengths use °C/s. The inspector organizes phase behavior, surface maps, thermal behavior and object interactions. Mixed-phase selections expose common fields without pretending to be Liquid. Baking Simulation Data and Rendering Data are separate actions; stable-ID ordering and removal safeguards remain. Stop Play Mode before baking generated data.
- MatterLightingField, TerrainMaterialField, GridAtmosphereRenderer, MatterCellHeatmapRenderer, MatterGridLight and MatterQuad expose focused references and controls, actionable validation and live status. Lighting and terrain rebuild buttons explain missing inputs. Use Current Cell Size saves the lighting reference in world units and supports Undo and prefab overrides.
- Substance Render Library: generated output; edit the owning definitions and rebake. Texture arrays are read-only under Diagnostics. If several databases share a library, select the intended source database before baking; the inspector does not choose one automatically.
- Substance Texture Library: read-only dimensions, slice counts, formats and bake revision, with actions to select its authoring database. Viewing does not acquire runtime texture tiers.
- Saved worlds and sample startup: world summaries and metadata remain read-only; startup controls precede scene references, with generated wiring collapsed. During Play Mode, startup values are locked while foldouts and guidance remain available.
Set up and repair a scene
Open Tools > Matter > Quick Setup..., choose the active scene's simulation and a substance database, and review the setup summary. A blank scene gets a new simulation; compatible fields and renderers are reused. When several simulations or databases exist, choose the intended target explicitly. Setup runs in Edit Mode, records Undo and opens the World Editor. Starter database creation uses unique paths.
Rendering Profile is required for appearance authoring: choose an existing asset to apply its shared look to both renderers, or leave it empty to preserve their current looks. Setup creates reusable profiles for local looks and reuses existing assignments. Matching looks share an asset; different looks remain separate. See profile ownership before editing a shared profile.
Browse substances and samples
Tools > Matter > Substances opens the searchable database editor. Drag the divider to resize the browser, clear filters when results are empty, and expand Validation to inspect issues and select their assets. Choose Validate to check the current database. Database order continues to define stable IDs, independent of the search display.
Tools > Matter > Samples offers Basic Setup, Feature Showcase and Benchmark Suite individually, with Import, Open Scene and Read Guide. Import All is explicit. Existing imported copies are preserved. Scene opening uses Unity's normal unsaved-scene prompt. Benchmark Suite also offers Open Benchmarks to open its profile launcher.
Technical settings are grouped in collapsed Advanced sections. Import the Benchmark Suite sample to measure simulation and rendering workloads.
Open the World Editor
- Open a scene with a configured
MatterSimManager. - Select the GameObject that contains the manager.
Unity activates the component tool and displays Matter World Paint and
Matter World Settings in Scene View. The selected manager needs a valid
SubstanceDatabase. The editor prepares an uninitialized backend in Edit Mode.
Fresh layouts place Paint on the left and Settings on the right. Drag the overlay headers to dock or float them. Paint starts at 260 px and resizes from 220 to 420 px; Settings starts at 360 px and resizes from 300 to 520 px. Existing docking preferences are retained. Use the Scene View Overlays menu to show either overlay if it is hidden.
Both overlays limit their height to the available Scene View space and scroll their contents. Paint tools use fewer columns in narrow panels so selected labels remain readable. For more room to work, maximize Scene View with Shift+Space while it has focus, or resize or reposition the overlays.
Unity 6000.6.2f1, dark theme: Paint controls, the substance palette, and a world before simulation preview.
Start or open a document
The top of Matter World Settings shows the filename, an asterisk for unsaved edits, preview state, and any actionable error. Hover the filename for its full path. Document controls appear directly below this status.
| Command | Result |
|---|---|
| Open | Opens an existing .matterworld document into the selected manager. |
| Clear | Offers to save, then clears every authored cell while keeping the layout and substances. |
| Capture | Copies the selected manager's current cells and tick into a new authored document. |
| Save | Writes the document to its current path, or asks for a path on first save. |
| Save As | Writes the world to another .matterworld file. |
| Reload | Offers to save unsaved work, then reads the source file again. |
During preview these saving actions read Save Preview and Save Preview As. The preview pauses before the destination dialog. A successful write accepts and saves the visible cells and tick, then ends preview. Canceling or a write failure retains the current document, source path, conflict state, and previous running or paused preview state.
Files saved under Assets import as MatterWorldAsset objects. Their inspector
shows dimensions, encoding, tick, world mapping, substance schema, and metadata.
Assign an Editor Target and select Open in World Editor to continue editing.
Paint and shape the world
Choose one of the six labeled tools in Matter World Paint:
- Paint and Erase apply a continuous circle or square brush.
- Eyedropper selects the substance and cell values under the pointer.
- Line draws a continuous line between drag endpoints.
- Rectangle draws a filled or outlined rectangle.
- Flood Fill replaces the connected region under the pointer.
Contextual settings show Radius (cells), Fill (0–255), and Temperature (°C) where relevant. Radius ranges from 0 to 128 cells; temperature uses Matter's encoded 0–255 °C range. Selecting a substance supplies its standard temperature. Enable Show cell grid for alignment; the grid is visible when zoomed in far enough to remain readable. Hovered-cell information appears beside these controls.
The virtualized palette shows a swatch, name, stable ID, and phase. Search by name or phase, ignoring case, or enter a numeric ID. Use Phase to narrow the list. Filtering preserves the current selection; the selected-material label indicates when it is hidden by a filter. Missing definitions show a diagnostic row and cannot be painted. IDs remain the ordered indices in the database.
Use Tab to move through controls and arrow keys to select palette entries. Enter in the Paint overlay returns focus to Scene View. Escape in search clears the query; Escape during a brush stroke cancels that stroke. Unity's Alt and mouse navigation remains available. Moving focus away during a drag finishes the current brush stroke and abandons an unfinished line or rectangle.
Undo and document history
Each brush stroke, line, rectangle, fill, or World Details edit participates in Unity Edit > Undo and Edit > Redo. Ordinary saves retain history: undoing away from the saved state marks the document dirty, and returning to that state clears the marker. Creating another branch of edits remains dirty. Undo history uses a bounded memory budget.
While preview is paused, consecutive strokes and eyedropper use preserve history. An actual simulation tick starts a new paint history segment and displays an explanation. Refreshing the interface does not reset history. Load, Clear, Capture, Reset, and Apply Preview establish new baselines.
Preview simulation safely
The Simulation preview controls let you inspect and edit a simulated result:
- Play advances continuously in Edit Mode.
- Pause stops simulation without discarding the visible result.
- Step advances one simulation tick.
- Reset restores the exact state and tick from before preview.
- Apply Preview accepts the visible cells and tick without saving.
Painting remains available during preview. Simulation pauses for the duration of a stroke, then resumes if it was running. Save Preview accepts and saves the visible result in one action. To keep editing without writing a file, choose Apply Preview and save later.
Paused GPU preview. Save Preview, Apply Preview, and Reset state their separate purposes; the history notice explains the simulation boundary. World Details remain disabled until the preview is applied or reset.
When closing the tool with preview active, Keep accepts the simulated world and Revert restores the state from before preview. Unsaved accepted work is written to local recovery before the session closes.
Edit World Details
Expand the initially collapsed World Details section in Settings to edit name, description, application version, and opaque user JSON. Text changes commit when the field loses focus and support Undo and dirty tracking. Matter stores the JSON text unchanged; it does not interpret it.
Details are disabled during preview. Choose Apply Preview or Reset first.
These fields travel with the .matterworld document and do not configure scene
GameObjects.
Recovery and file conflicts
The editor keeps local recovery data under Library/MatterWorldEditor and
offers available recovery when you reopen the same saved scene target. Save
both the scene and the .matterworld document for recovery across restarts.
If a recovery write fails, read the warning in World Settings and choose Retry Recovery, or save the world to a writable location. Keep the recovery folder if you need help restoring a document that can no longer be reopened.
An external file conflict blocks Save but leaves Save As available: choose a destination different from the conflicted source, or choose Reload to read that source. Database conflicts block both saving actions; restore the database or reload/close the session before continuing. The explanation and recovery choices remain in Settings.
Recovery is local and does not replace saving a .matterworld file or version
control. If final recovery fails during a normal close, the session stays open
so you can save or retry.
Recommended workflow
- Configure and validate the target's
SubstanceDatabase. - Open a document, clear the world, or capture the current simulation.
- Paint using the searchable palette and Undo.
- Add identifying World Details and save.
- Preview with Step or Play, painting further if needed.
- Reset to discard the preview, Apply Preview to keep editing, or Save Preview to accept and save the visible result.
For runtime persistence examples, see Getting started. For authored cells, simulation, and rendering, see Architecture and core concepts.



