tilemap
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving the Unity Tilemap packages (com.unity.2d.tilemap + optional com.unity.2d.tilemap.extras for RuleTile) in a Unity project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.2d.tilemap installed (the bridge sets the UNITY_OPEN_MCP_EXT_TILEMAP define automatically). The RuleTile tool additionally requires com.unity.2d.tilemap.extras — when extras is absent, tilemap_create_rule_tile returns a clear install error (tilemap_extras_required) instead of failing silently. The tool group is hidden from ListTools…
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
All tools in this pack use unity_open_mcp_tilemap_*.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP — Tilemap Extension
Skill for AI agents driving the Unity Tilemap packages
(com.unity.2d.tilemap + optional com.unity.2d.tilemap.extras for RuleTile)
in a Unity project through the unity-open-mcp MCP server.
This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has
com.unity.2d.tilemapinstalled (the bridge sets theUNITY_OPEN_MCP_EXT_TILEMAPdefine automatically). The RuleTile tool additionally requirescom.unity.2d.tilemap.extras— when extras is absent,tilemap_create_rule_tilereturns a clear install error (tilemap_extras_required) instead of failing silently. The tool group is hidden fromListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The project has
com.unity.2d.tilemapinstalled (it ships with the 2D template; verify in the Package Manager). For rule tiles, additionally installcom.unity.2d.tilemap.extras. Ifcapabilitiesreports thetilemapgroup asavailable: false, install the package and let the bridge recompile. - The
tilemaptool group is activated — callunity_open_mcp_manage_tools(action="activate", group="tilemap")before invoking anytilemap_*tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand.
Tool prefix
All tools in this pack use unity_open_mcp_tilemap_*. All five tools are
mutating and run the full gate path; paths_hint is the host scene path
(or includes the asset path for the asset-create tools).
Vocabulary
A Grid is the parent GameObject that lays out cells. Each Tilemap is a
child GameObject holding a Tilemap component (the cell data) and a
TilemapRenderer (the drawing). Multiple Tilemaps can share one Grid (e.g.
"Ground", "Walls", "Decorations" layers).
A Tile is a ScriptableObject asset (a .asset) that bundles a Sprite +
collider shape. A TileBase is the abstract base (Tile is one
implementation; RuleTile is another). Painting is done by cell coordinate
(x, y, z), where x / y are the grid cell and z is the layer plane
(usually 0).
A RuleTile (from com.unity.2d.tilemap.extras) is a smarter tile whose
sprite is selected by its neighbors — perfect for walls, roads, and water
where the visible tile depends on adjacency.
Canonical workflow: a 2D level
- Create the grid —
unity_open_mcp_tilemap_createadds a Grid GameObject to the active scene with a child Tilemap + TilemapRenderer. Returns the Grid + Tilemap instance ids + paths. Note the TilemapinstanceId. - Create tile assets —
unity_open_mcp_tilemap_create_tile_assetwrites aTileasset at anAssets/.../*.assetpath. Optionally seed its sprite viasprite_asset_path. One Tile asset per distinct visual. - Paint single tiles —
unity_open_mcp_tilemap_set_tilepaints a tile at a cell coordinate. Address the Tilemap byinstance_idand the tile bytile_asset_path. - Fill regions —
unity_open_mcp_tilemap_box_fillpaints a rectangle.x1, y1andx2, y2are the inclusive opposite corners. - Auto-tile with RuleTile (optional, requires extras) —
unity_open_mcp_tilemap_create_rule_tilewrites a RuleTile asset. Paint it withtilemap_set_tile/tilemap_box_filllike any other tile; the rule picks the correct sprite based on neighbors.
Common recipes
A ground layer
tilemap_createwithgrid_name: "Grid",tilemap_name: "Ground".tilemap_create_tile_assetwithasset_path: "Assets/Tiles/Ground.asset",sprite_asset_path: "Assets/Sprites/ground.png".tilemap_box_fillwithtile_asset_path: "Assets/Tiles/Ground.asset",x1: -10, y1: -10, x2: 10, y2: 10.
A walls layer using RuleTile
tilemap_createwithgrid_name: "Grid",tilemap_name: "Walls",parent_path: "Grid"(reuse the existing Grid).tilemap_create_rule_tilewithasset_path: "Assets/Tiles/WallRuleTile.asset".- Configure the rule tile's rules via the Inspector (the typed surface
doesn't cover rule editing — set up adjacency rules manually or via
execute_csharp). tilemap_set_tileto paint individual wall cells; the rule tile picks the correct sprite.
Agent-sense pairing
unity_senses_screenshot(view: "scene") visually confirms the painted layout.unity_open_mcp_assets_refreshafter creating tile assets ensures the AssetDatabase picks them up beforeset_tilereferences them.
Tool reference
| Tool | Mutating | Lifecycle | Notes |
tilemap_create | yes | editor_settle | Grid + child Tilemap GameObject. |
tilemap_set_tile | yes | editor_settle | Paint one cell. |
tilemap_box_fill | yes | editor_settle | Paint a rectangle (inclusive). |
tilemap_create_tile_asset | yes | editor_settle | New Tile .asset. |
tilemap_create_rule_tile | yes | editor_settle | New RuleTile .asset (needs extras). |
Address every Tilemap by instance_id > path > name. Every mutating tool
requires a non-empty paths_hint scoped to the host scene path (or the asset
path for the asset-create tools) — the gate has no whole-project fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

