Getting started
Start with a working sample, then create or adapt your own scene. No scripting is required for the first world.
Requirements
Use Unity 6 or later with URP 17. See Package dependencies for the dependency versions, and Requirements and compatibility for platform support.
Install Matter
- Purchase Matter from the Unity Asset Store using the Unity account you use in the Editor.
- Open Window > Package Management > Package Manager and select My Assets.
- Find Matter, then choose Download and Import. Follow Unity's import prompts to add it to your project.
Wait for package import and compilation to finish before opening Matter menus. If an import reports missing dependencies, resolve them in Package Manager and check the first Console error before continuing.
Prepare the project for rendering
- Start with a URP project template, or assign a URP asset in Edit > Project Settings > Graphics. Installing the URP package alone does not activate the render pipeline. Check Quality for an override on the quality level your application uses.
- Open Edit > Project Settings > Player > Other Settings > Rendering and set Color Space to Linear.
- Let Unity finish reimporting assets before opening a Matter scene.
Unity's URP setup guide and color-space instructions cover these project settings. Matter's Quick Setup configures scene components after the project uses URP.
Run the Basic Setup sample
- Choose Tools > Matter > Samples and select Import for Basic Setup. Package Manager's Samples section offers the same sample.
- Select Open Scene, or open
Assets/Samples/Matter/<version>/Basic Setup/MatterBasic.unity. - Enter Play Mode. You should see a rock basin, sand, water and a steam pocket.
- Stop Play Mode before changing startup configuration.
The chooser imports only missing samples; it never overwrites an existing project-owned copy. Import All is explicit. For the interactive desktop demo, import Feature Showcase separately and wait for its TMP resources to finish installing. Benchmark Suite is also independent.
Set up the current scene quickly
- Open your intended scene and choose Tools > Matter > Quick Setup....
- Select a database, or use Create Starter Database for Water, Sand, Rock and Steam. If several simulations exist, select the intended target.
- Review which components will be created, reused or repaired, then choose Create Matter Scene for a new simulation or Repair Selected Simulation for an existing one.
- Matter selects the simulation, switches Scene View to 2D and fits the full grid in view with the World Editor open. Paint immediately in Edit Mode; Play Mode is not required for authoring.
- Save the Unity scene to preserve the component references and profile assignments.
Quick Setup creates a centered 512 by 256 simulation when needed, assigns its fields, and connects opaque and transparent renderers using Topology Locked smoothing. It also creates or reuses a scene camera and fits the grid to its aspect ratio. Repeating setup reuses compatible components and preserves their current looks unless you explicitly select a different Rendering Profile. It records Undo and disables scene changes during Play.
Author worlds in Scene View
Select the simulation GameObject. Use the Matter World Paint overlay to
paint, erase or fill cells. Use Matter World Settings to save a .matterworld
file under Assets. The Editor tools guide covers strokes,
Undo, preview, recovery, and overlay layout.
For Basic Setup to start from your saved painting, select Matter and find its Matter Sample Bootstrap component, choose Saved World, assign the imported asset, and enter Play Mode. Leaving Generated Basin selected recreates the sample basin instead. See the saved-world workflow.
Quick Setup creates a blank grid and does not add a runtime world loader.
Saving the Unity scene preserves its components; saving a .matterworld preserves
the cells. In your own scene, load that document from your startup code as described
in Load a world in your own scene.
Create substances
Open Tools > Matter > Substances. Database order defines stable material IDs; establish it before saving production worlds. Simulation and rendering data have separate bake actions. Continue with Substance authoring.
Configure the simulation
Common backend, dimension and cadence controls appear in the manager inspector. Allocation settings lock while initialized. Technical controls are under Advanced. For scripted setup and exact cell access, continue with API integration.
Configure world mapping
Origin locates the grid's lower-left corner; cell size gives one cell's width and height in world units. Use the manager's conversion helpers instead of duplicating coordinate arithmetic. See Core concepts.
Render the world
Use the two renderers created by Quick Setup. Select a renderer and choose Select Profile to edit its shared Rendering Profile. The profile contains Surface Smoothing, Look, Fluid, and Lighting controls. See smoothing modes and setup and Rendering and lighting.
Seed and edit cells
Use LoadInitialCells for a complete initial world and TryQueueEdit for
bounded gameplay edits. Check whether each edit was accepted. Working code is
in Read and modify cells.
Switch simulation backend
Use SetBackendAsync for portable state-preserving switching; WebGPU requires
asynchronous GPU readback. Coordinate switching with loads and gameplay writes.
See Backends.
Save and load worlds
Use MatterWorldPersistence and keep substance-schema validation enabled.
Save cells separately from scene objects and renderer settings. The
Persistence guide includes a complete asynchronous example.
Next steps
- Samples: explore the nine public Showcase worlds.
- Physics integration: adapt the sample's collision and buoyancy.
- Troubleshooting: diagnose incomplete setup.


