texture
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving Unity texture import settings in a project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools use the built-in TextureImporter (UnityEditor.CoreModule) — no Unity package install is required, and they compile into every bridge build. Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. - unity_open_mcp_ping returns connected: true. - The sprite2d tool group is…
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
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Use get_importer to read/edit import settings.
- Very specific: line 158
Every mutating tool requires a non-empty paths_hint scoped to the texture asset path — the gate has no whole-project fallback.
≈ “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 — Texture Extension
Skill for AI agents driving Unity texture import settings in a project through
the unity-open-mcp MCP server.
This domain is embedded in the bridge and opt-in. Its tools use the built-in
TextureImporter(UnityEditor.CoreModule) — no Unity package install is required, and they compile into every bridge build. Its 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
sprite2dtool group is activated — callunity_open_mcp_manage_tools(action="activate", group="sprite2d")before invoking any Texture (or SpriteAtlas) tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand. BecauseTextureImporteris built-in,capabilitiesalways reports thesprite2dgroup asavailable: true(nodomainDefine).
Tool prefix
unity_open_mcp_texture_* — Texture import. The sprite2d group is shared
with the SpriteAtlas family (unity_open_mcp_spriteatlas_*); see the
SpriteAtlas extension skill for the atlas-packing half of the 2D art pipeline.
Mutating tools (texture_set_import, texture_reimport) accept the standard
paths_hint and run the full gate path (editor_settle lifecycle — a
reimport can take seconds and may trigger a platform-switch domain reload);
read-only tools (texture_get_importer, texture_get) are gate-free.
Two read paths
texture_get_importer— the import-pipeline config (TextureImportersettings:textureType,npotScale,maxTextureSize,textureCompression,spriteImportMode,filterMode, …). What the asset will be when imported.texture_get— the runtime Texture info (width,height,format,mipmapCount,filterMode). What the asset currently is in memory.
Use get_importer to read/edit import settings; use get to confirm the
imported result. They are complementary.
Canonical workflow: configure a texture
- Read the current config —
unity_open_mcp_texture_get_importerwithasset_path: "Assets/Textures/Icon.png"(gate-free). - Patch + reimport —
unity_open_mcp_texture_set_importwith asettings_jsonpatch (see below). The tool writes the.metaand triggers the import pipeline; theeditor_settlelifecycle makes the dispatcher wait for the import to settle before returning. - Verify —
texture_get_importerto confirm the new settings, andtexture_getto confirm the imported result (e.g.formatchanged).
Settings patch (texture_set_import)
settings_json is a JSON object string with optional snake_case keys. Each
key is optional — omit to leave unchanged. Unknown keys are reported in
unknownFields, not fatal.
{
"texture_type": "Sprite",
"sprite_mode": "Single",
"sprite_pixels_per_unit": 100,
"max_texture_size": 1024,
"compression": "Compressed",
"filter_mode": "Bilinear",
"aniso_level": 1,
"srgb": true,
"readable": false,
"mipmap_enabled": false
}Supported keys (each optional):
| Key | Values |
texture_type | Default | NormalMap | Sprite | Cursor | Cookie | Lightmap | SingleChannel | … |
texture_shape | Texture2D | TextureCube |
npot_scale | None | ToNearest | ToLarger | ToSmaller |
max_texture_size | 32 | 64 | … | 8192 |
compression | None | Uncompressed | Compressed | CompressedHQ | CompressedLQ |
compression_quality | 0–100 |
crunched | bool |
srgb | bool |
readable | bool |
mipmap_enabled | bool |
filter_mode | Point | Bilinear | Trilinear |
aniso_level | 0–16 |
wrap_mode | Repeat | Clamp | Mirror | MirrorOnce |
alpha_is_transparency | bool |
sprite_mode | None | Single | Multiple | Polygon |
sprite_pixels_per_unit | float |
normalmap | bool |
Sprite + normal-map presets
texture_set_import folds the sprite-preset and normal-map-preset flows into
one typed call (rather than separate set_sprite / set_normalmap tools):
- Sprite preset — pass
sprite_mode(Single|Multiple|Polygon). The tool switchestextureTypetoSpriteand setsspriteImportMode. Optionally passsprite_pixels_per_unit. - Normal-map preset — pass
normalmap: true. The tool switchestextureTypetoNormalMapand enables the normal-map pipeline.
Force reimport (texture_reimport)
unity_open_mcp_texture_reimport forces a reimport without changing
settings — useful after an external build pipeline overwrites the source
file on disk. Runs through the gate with editor_settle so the next mutation
sees the settled reimport.
Layered with SpriteAtlas
The sprite2d group covers texture import (this skill). It pairs with
the SpriteAtlas family (unity_open_mcp_spriteatlas_*) — mark a texture
as a Sprite here (sprite_mode: "Single"), then add it to an atlas there.
Common recipes
Compress a UI sprite
texture_set_importwithsettings_json: '{"texture_type":"Sprite","sprite_mode":"Single","max_texture_size":1024,"compression":"Compressed","filter_mode":"Bilinear"}'.texture_getto confirm the newformat(e.g.ASTC_RGBA_6x6).
Convert a texture to a normal map
texture_set_importwithsettings_json: '{"normalmap":true}'.texture_get_importerto confirmtextureType: NormalMap.
Reimport after an external file swap
- (External pipeline overwrites
Assets/Textures/Icon.png.) texture_reimportwithasset_path: "Assets/Textures/Icon.png".
Agent-sense pairing
unity_senses_screenshot(view:"game") visually confirms the texture renders correctly after a compression change.unity_open_mcp_spriteatlas_add_packableconsumes a Sprite-configured texture as a packable.
Tool reference
| Tool | Mutating | Lifecycle | Notes |
texture_get_importer | no | none | Import-pipeline config (read-only). |
texture_set_import | yes | editor_settle | settings_json patch; sprite + normalmap presets folded in. |
texture_reimport | yes | editor_settle | Force reimport without changing settings. |
texture_get | no | none | Runtime Texture info (read-only). |
Every mutating tool requires a non-empty paths_hint scoped to the texture
asset path — 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.

