Skip to main content
Texture Stamper is a MonoBehaviour stamper tool that paints Unity Terrain Texture layers onto terrain inside a defined area. It does not spawn objects. Instead, it reads filter fitness for each prototype and writes terrain alphamap data.
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:
  1. Casts a ray downward from the stamper’s position to find the surface.
  2. Builds the box area from the result.
  3. 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.
The tool does not use Scatter Settings. It operates directly on the terrain alphamap at full resolution across the stamper bounds.

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.
SettingDescriptionDefault
Fit To Terrain SizeButton. Resizes the stamper bounds to match the active terrain’s size.
Use Spawn CellsDivides 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 SizeWidth and depth of each spawn cell in meters. Only shown when Use Spawn Cells is enabled.1000
Show CellsDraws each cell as a wire cube in the Scene View. Only shown when Use Spawn Cells is enabled.true
Use MaskApplies a custom 2D texture mask to modulate the spawn area. Only available when Use Spawn Cells is disabled.false
MaskA 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:
SettingDescriptionDefault
VisualisationWhen enabled, shows the Mask Filter output as a colored overlay in the Scene View for the currently selected Group.true
Auto RespawnWhen 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 SpawnTime in seconds to wait after a setting change before triggering auto respawn. Range: 0–3.0.1

Spawn buttons

ButtonConditionBehavior
SpawnAuto Respawn off, not spawningRuns the texture stamp pass over the full area.
RespawnAuto Respawn on, or no prototype selectedRemoves the current pass and re-runs spawn.
CancelCurrently spawningCancels the in-progress spawn.
Spawn (cells)Use Spawn Cells on, not spawningGenerates cells if none exist, then processes each cell.
Refresh (cells)Use Spawn Cells on, no prototype selectedClears 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

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.whiteTexture is 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.