agentleFS
AlexeyPerovAlexeyPerov/Unity-Open-MCP/skills/extensions/texture/SKILL.md

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…

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
  1. Very specific:

    Use get_importer to read/edit import settings.

    line 43
  2. Very specific:

    Every mutating tool requires a non-empty paths_hint scoped to the texture asset path — the gate has no whole-project fallback.

    line 158

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 from ListTools until the connected session activates it.

Preconditions

  • Unity Editor is open with the target project.
  • unity_open_mcp_ping returns connected: true.
  • The sprite2d tool group is activated — call unity_open_mcp_manage_tools(action="activate", group="sprite2d") before invoking any Texture (or SpriteAtlas) tool. Fresh sessions start with two default-on groups (core and gate-and-verify); activate the other groups you need on demand. Because TextureImporter is built-in, capabilities always reports the sprite2d group as available: true (no domainDefine).

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 (TextureImporter settings: 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

  1. Read the current config — unity_open_mcp_texture_get_importer with asset_path: "Assets/Textures/Icon.png" (gate-free).
  2. Patch + reimport — unity_open_mcp_texture_set_import with a settings_json patch (see below). The tool writes the .meta and triggers the import pipeline; the editor_settle lifecycle makes the dispatcher wait for the import to settle before returning.
  3. Verify — texture_get_importer to confirm the new settings, and texture_get to confirm the imported result (e.g. format changed).

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):

KeyValues
texture_typeDefault | NormalMap | Sprite | Cursor | Cookie | Lightmap | SingleChannel | …
texture_shapeTexture2D | TextureCube
npot_scaleNone | ToNearest | ToLarger | ToSmaller
max_texture_size32 | 64 | … | 8192
compressionNone | Uncompressed | Compressed | CompressedHQ | CompressedLQ
compression_quality0–100
crunchedbool
srgbbool
readablebool
mipmap_enabledbool
filter_modePoint | Bilinear | Trilinear
aniso_level0–16
wrap_modeRepeat | Clamp | Mirror | MirrorOnce
alpha_is_transparencybool
sprite_modeNone | Single | Multiple | Polygon
sprite_pixels_per_unitfloat
normalmapbool

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 switches textureType to Sprite and sets spriteImportMode. Optionally pass sprite_pixels_per_unit.
  • Normal-map preset — pass normalmap: true. The tool switches textureType to NormalMap and 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

  1. texture_set_import with settings_json: '{"texture_type":"Sprite","sprite_mode":"Single","max_texture_size":1024,"compression":"Compressed","filter_mode":"Bilinear"}'.
  2. texture_get to confirm the new format (e.g. ASTC_RGBA_6x6).

Convert a texture to a normal map

  1. texture_set_import with settings_json: '{"normalmap":true}'.
  2. texture_get_importer to confirm textureType: NormalMap.

Reimport after an external file swap

  1. (External pipeline overwrites Assets/Textures/Icon.png.)
  2. texture_reimport with asset_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_packable consumes a Sprite-configured texture as a packable.

Tool reference

ToolMutatingLifecycleNotes
texture_get_importernononeImport-pipeline config (read-only).
texture_set_importyeseditor_settlesettings_json patch; sprite + normalmap presets folded in.
texture_reimportyeseditor_settleForce reimport without changing settings.
texture_getnononeRuntime 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.