New to Texture Stamper? Follow the step-by-step Texture Stamper — Getting Started tutorial first.
Supported resource types
Texture Stamper supports:How it works
When you click Spawn, Texture Stamper processes each active Group in order:- Casts a ray downward from the stamper’s position to find the surface.
- Builds the box area from the result.
- For each prototype in the Group, evaluates the Mask Filter at each point in the area and writes terrain alphamap values proportional to the fitness result.
Spawn Cells mode
For large terrains, enable Use Spawn Cells in the Area Settings. The tool divides the stamper bounds into a grid of cells and processes each one in sequence. This avoids long freezes that can occur when stamping very large areas in a single pass. When Spawn Cells is enabled:- Auto Respawn is not available.
- Use the Spawn and Refresh buttons in the Stamper Tool Controller instead.
- Clicking Refresh Cells regenerates the cell grid from the current area bounds and cell size.
Area Settings
The Texture Stamper uses a specialized area component (TextureStamperArea) that extends the standard Area with texture-specific options.
| Setting | Description | Default |
|---|---|---|
| Fit To Terrain Size | Button. Resizes the stamper bounds to match the active terrain’s size. | — |
| Use Spawn Cells | Divides the area into a grid of cells and processes each cell separately. Recommended when the terrain is larger than 4 km × 4 km. | false |
| Cell Size | Width and depth of each spawn cell in meters. Only shown when Use Spawn Cells is enabled. | 1000 |
| Show Cells | Draws each cell as a wire cube in the Scene View. Only shown when Use Spawn Cells is enabled. | true |
| Use Mask | Applies a custom 2D texture mask to modulate the spawn area. Only available when Use Spawn Cells is disabled. | false |
| Mask | A texture picker showing available masks. Drag Texture2D assets into the panel or right-click to load Polaris brushes. Only shown when Use Mask is enabled. | — |
Stamper Tool Controller settings
The Texture Stamper has its own Stamper Tool Controller with these fields:| Setting | Description | Default |
|---|---|---|
| Visualisation | When enabled, shows the Mask Filter output as a colored overlay in the Scene View for the currently selected Group. | true |
| Auto Respawn | When enabled, automatically removes the current texture pass and re-runs spawn whenever a setting changes. Not available when Use Spawn Cells is on. | false |
| Delay Auto Spawn | Time in seconds to wait after a setting change before triggering auto respawn. Range: 0–3. | 0.1 |
Spawn buttons
| Button | Condition | Behavior |
|---|---|---|
| Spawn | Auto Respawn off, not spawning | Runs the texture stamp pass over the full area. |
| Respawn | Auto Respawn on, or no prototype selected | Removes the current pass and re-runs spawn. |
| Cancel | Currently spawning | Cancels the in-progress spawn. |
| Spawn (cells) | Use Spawn Cells on, not spawning | Generates cells if none exist, then processes each cell. |
| Refresh (cells) | Use Spawn Cells on, no prototype selected | Clears the current pass, regenerates cells if needed, and re-runs spawn. |
Per-prototype settings
Each Terrain Texture prototype has:- Mask Filters — determines where the texture is painted and at what strength.
Shared components
- Stamper Tool Controller — general stamper behavior.
- Layer Settings — specifies which layers are used for raycasts.
When to use Texture Stamper
Texture Stamper is best when you want:- a terrain texture pass driven by height, slope, or noise filters across a large area;
- repeatable texturing tied to a scene stamper object rather than manual brush painting;
- cell-based processing for terrain larger than 4 km × 4 km.
Notes
- Texture Stamper only works on Unity Terrain. It writes to the terrain’s alphamap data directly.
- The Use Mask option is mutually exclusive with Use Spawn Cells. When cells are on, the area mask is ignored and
Texture2D.whiteTextureis used (full coverage). - When visualization is on and exactly one Group is selected, the Scene View shows the Mask Filter output as an overlay over the stamper area.
