Pixel-based Map Generator
A downloadable tool
Download NowName your own price
Pixel-based Map Generator turns pixel art into Unity levels. Paint your map in any image editor, give each color a prefab, and generate the whole level in one click.
Draw it flat, build it in 3D
Every pixel becomes an object: black for walls, white for floor, red for lava, whatever you like. You can use one image, a stack of images (one per height level), or a layered Photoshop PSD with one layer per height.
Features
- Any number of prefabs per color, with weights. For example, 70% plain floor and 30% cracked floor.
- Autotiling. Assign end, straight, corner, T and cross pieces, and walls pick the right piece and turn to fit their neighbors.
- Face toward. Doors, torches or walls can turn to face a neighboring color, such as the floor.
- Place underneath. Put a floor tile under every wall automatically, without painting it twice.
- Stacking. Build tall walls and pillars from repeated copies.
- Random rotation, scale, offset and position jitter. Set them for the whole map, then override them for any color.
- Lightmap-ready. Generated objects are marked static, so you can bake right away with Unity's lightmapper or Bakery.
- Regenerate in place. Change a setting and click again: the old map is replaced, and one Undo brings it back.
- Drag and drop. Drop a whole selection of prefabs onto a color at once.
- Presets. Save a map's full setup as an asset and reuse it, or let the window remember your last settings.
- Runtime generation. Call
preset.Generate()to build levels in a running game. - Color tolerance, so slightly-off shades still match their color.
- Center or corner origin, adjustable cell size, and a random seed for repeatable layouts.
Requirements
- Unity 6 (6000.0 or newer).
- The whole tool is a single C# file.
- No dependencies.
- PSDs must be 8-bit RGB/RGBA. Layers inside groups are read normally; smart objects and adjustment layers aren't supported.
Installation
- Download
PixelMapPreset.cs. - Put it anywhere in your project's
Assetsfolder. - Open SharkJets > Pixel-based Map Generator from the menu bar.
Disclaimer
This tool is provided as is, without warranty of any kind. SharkJets is not responsible for any other damage resulting from its use. Save your scene and back up your project before generating.
| Updated | 26 days ago |
| Published | 27 days ago |
| Status | Released |
| Category | Tool |
| Author | skidvis |
| Tags | editor-tool, game-development, level-design, Level Editor, map-generator, Pixel Art, prefab, Procedural Generation, Tilemap, Unity |
| Content | No generative AI was used |
Download
Download NowName your own price
Click download now to get access to the following files:
PixelMapPreset.cs 53 kB


Leave a comment
Log in with itch.io to leave a comment.