Dynamic 2D Map Generator


2D editor tool that instantly generates modular, randomized city maps with roads, WFC tiles, buildings, paths, props, terrain detail, tunable settings, Undo, and prefab workflow support.


by 300Mind


Price History +


Dynamic 2D Map Generator is a fully modular, editor-time generation system for Unity 2D that produces realistic, randomised city layouts at the click of a button. Built on layered pipeline road graphs, Wave Function Collapse tile placement, block subdivision, building placement, footpath rendering, and in-block prop population, it delivers richly detailed urban scenes without hand-crafting a single tile. Every subsystem is independently configurable: tweak road density, zone weights, building spacing, prop density, and terrain noise parameters all from a single inspector window. Results are fully Undo-compatible and work seamlessly with Unity's Prefab workflow.


Key Features


  • WFC Road Layout: Wave Function Collapse ensures every road tile is socket-compatible with its neighbours, producing organic, gap-free street networks.
  • Zone System: Assign weighted zone types (Residential, Commercial, Industrial, etc.) to city blocks. Each zone carries its own ground base tile palette, building prefab list, and in-block prop settings.
  • Variety-Aware Building Placement: A multi-pass sweep fills blocks with large footprint buildings first, then 1×1 gap-fillers. A smart sorting algorithm tracks per-block and global usage counts along with a spatial memory radius to prevent repetitive building clusters.
  • In-Block Prop Generation: Leftover empty cells after building placement are filled with zone-specific props or Global props. Supports multi-cell prop footprints with configurable density and spacing.
  • Footpath & Perimeter Props: A perimeter-walk algorithm correctly traces L-shaped, U-shaped, and irregular block outlines for footpath tile stamping and prop placement.
  • Procedural Terrain: Perlin-noise-driven outer terrain with configurable noise scale and threshold. A road-distance field smoothly blends city edges into wilderness.
  • Full Undo Support: Every placed object and tile operation is registered with Unity's Undo system.

Note: The Demo Scene uses Built-in compatible materials to support both the built-in Render Pipeline and URP projects. The generator itself is pipeline-agnostic. Depending on your project setup, you may optionally adjust or convert materials/shaders after import.