gamedev-unity/skills/unity-skills/skills/importer/SKILL.md
Configure asset import settings — texture/audio/model importers, sprite settings, and per-platform overrides. Use when adjusting how assets import, setting texture compression or sprite modes, or applying per-platform import overrides, even if the user just says "导入设置" or "贴图压缩". 配置资源导入设置(texture/audio/model 导入器、sprite 设置、分平台覆盖);当用户要调整资源如何导入、设置贴图压缩或 sprite 模式、或应用分平台导入覆盖时使用。
npx skillsauth add bernatmv/ai-rules unity-importerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this module to change import settings for textures, audio, and models that already exist in the project.
Batch-first: Prefer the batch setters when configuring
2+assets of the same category.
Operating Mode (v1.9 three-tier):
texture_get_settings, texture_get_info, texture_find_assets, texture_find_by_size, texture_get_platform_settings, texture_get_import_settings, audio_get_settings, audio_get_clip_info, audio_find_clips, audio_find_sources_in_scene, audio_get_source_info, audio_get_import_settings, model_get_settings, model_find_assets, model_get_mesh_info, model_get_materials_info, model_get_animations_info, model_get_rig_info, model_get_import_settings, asset_get_labels) run directly. Setters / reimport are FullAuto — on MODE_RESTRICTED, run the grant protocol.RiskLevel="high" skills — nothing auto-classifies as forbidden. Importer mutations are reachable via grant in Approval mode.asset_reimport / asset_reimport_batch when Unity needs to fully refresh the asset.DO NOT (common hallucinations):
importer_import does not exist -> use asset_import in the asset module to bring files into the projectimporter_set_format does not exist -> use the specific texture/audio/model settersimporter_get_settings does not exist -> use the category-specific gettersRouting:
assettexture_*audio_*model_*texture_set_import_settings, audio_set_import_settings, model_set_import_settingsasset_reimport or asset_reimport_batchImport settings:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| texture_get_settings | Read texture importer settings | assetPath |
| texture_set_settings | Set texture importer settings | assetPath, textureType?, maxSize?, filterMode?, compression?, mipmapEnabled?, sRGB?, readable?, wrapMode? |
| texture_set_settings_batch | Batch texture settings | items |
| texture_get_import_settings | Read minimal importer settings (type/maxSize/compression/filter/srgb/readable/mipmap) | assetPath |
| texture_set_import_settings | Alternative texture import bridge | similar texture fields |
Query and runtime info:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| texture_find_assets | Search Texture2D assets by AssetDatabase filter | filter?, limit? (default 50) |
| texture_get_info | Inspect dimensions, format, and runtime memory size | assetPath |
| texture_find_by_size | Find textures in a dimension range (pixels) | minSize? (0), maxSize? (99999), limit? (50) |
Typed / platform overrides:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| texture_set_type | Switch texture type | assetPath, textureType (Default/NormalMap/Sprite/EditorGUI/Cursor/Cookie/Lightmap/SingleChannel) |
| texture_set_platform_settings | Override per-platform settings | assetPath, platform (Standalone/iPhone/Android/WebGL), maxSize?, format?, compressionQuality?, overridden? |
| texture_get_platform_settings | Read per-platform override | assetPath, platform |
| texture_set_sprite_settings | Sprite-specific knobs (PPU, mode) | assetPath, pixelsPerUnit?, spriteMode? (Single/Multiple/Polygon) |
| sprite_set_import_settings | Sprite importer bridge (PPU, packingTag, pivot) | assetPath, spriteMode?, pixelsPerUnit?, packingTag?, pivotX?, pivotY? |
Common texture decisions:
textureType="Sprite", usually mipmapEnabled=falsefilterMode="Point"readable=true only when necessarytexture_set_platform_settings over global texture_set_settingsImport settings:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| audio_get_settings | Read audio importer settings | assetPath |
| audio_set_settings | Set audio importer settings | assetPath, forceToMono?, loadInBackground?, loadType?, compressionFormat?, quality? |
| audio_set_settings_batch | Batch audio settings | items |
| audio_get_import_settings | Read minimal importer defaults (loadType/format/quality/forceToMono/loadInBackground) | assetPath |
| audio_set_import_settings | Alternative audio import bridge | similar audio fields |
Clip query and info:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| audio_find_clips | Search AudioClip assets by filter | filter?, limit? (default 50) |
| audio_get_clip_info | Inspect length/channels/frequency/samples of a clip | assetPath |
Scene runtime (AudioSource / AudioMixer):
| Skill | Use | Key parameters |
|-------|-----|----------------|
| audio_add_source | Add an AudioSource to a GameObject | target (name/instanceId/path), clipPath?, playOnAwake? (false), loop? (false), volume? (1) |
| audio_get_source_info | Read the AudioSource configuration | target |
| audio_set_source_properties | Update AudioSource fields | target, clipPath?, volume?, pitch?, loop?, playOnAwake?, mute?, spatialBlend?, priority? |
| audio_find_sources_in_scene | List all AudioSources in the active scene | limit? (default 50) |
| audio_create_mixer | Create a new AudioMixer asset | mixerName? (default NewAudioMixer), folder? (default Assets) |
Common audio decisions:
loadType="Streaming"loadType="DecompressOnLoad"forceToMono=trueaudio_set_source_properties over manual component editsImport settings:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| model_get_settings | Read model importer settings | assetPath |
| model_set_settings | Set model importer settings | assetPath, globalScale?, meshCompression?, isReadable?, generateSecondaryUV?, animationType?, importAnimation?, importCameras?, importLights?, materialImportMode? |
| model_set_settings_batch | Batch model settings | items |
| model_get_import_settings | Read minimal importer defaults (scale/compression/animationType/importAnimation/materialImportMode) | assetPath |
| model_set_import_settings | Alternative model import bridge | similar model fields |
Query and info:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| model_find_assets | Search model assets by filter | filter?, limit? (default 50) |
| model_get_mesh_info | Mesh vertex / triangle / submesh stats | target (name/instanceId/path) or assetPath |
| model_get_materials_info | Inspect sub-asset materials embedded in the model | assetPath |
| model_get_animations_info | List animation clips and framerates on the model | assetPath |
| model_get_rig_info | Read animationType, avatar, skeleton binding info | assetPath |
Animation and rig:
| Skill | Use | Key parameters |
|-------|-----|----------------|
| model_set_animation_clips | Configure animation clip splits | assetPath, clips (JSON array of {name, firstFrame, lastFrame, loop}) |
| model_set_rig | Switch rig/skeleton mode | assetPath, animationType (None/Legacy/Generic/Humanoid), avatarSetup? |
Common model decisions:
animationType="Humanoid" when retargeting is requiredmodel_set_rig or model_set_animation_clips -> call asset_reimport to refresh clips and avatarAfter importer changes, use reimport when you need Unity to fully refresh the asset:
| Skill | Use |
|-------|-----|
| asset_reimport | Reimport one asset |
| asset_reimport_batch | Reimport assets matching a search scope |
import unity_skills
unity_skills.call_skill("texture_set_settings_batch", items=[
{"assetPath": "Assets/UI/icon_play.png", "textureType": "Sprite", "mipmapEnabled": False},
{"assetPath": "Assets/UI/icon_pause.png", "textureType": "Sprite", "mipmapEnabled": False}
])
unity_skills.call_skill("audio_set_settings",
assetPath="Assets/Audio/bgm.mp3",
loadType="Streaming",
compressionFormat="Vorbis",
quality=0.7
)
unity_skills.call_skill("asset_reimport", assetPath="Assets/Audio/bgm.mp3")
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.
Load IMPORT_REFERENCE.md for extended asset search/query helpers, platform overrides, rig/animation details, and importer-side best practices.
development
Keyword research and validation with real search-demand data — never ship keywords from intuition alone. Probes Google Autocomplete per language (free, no account) to prove demand and discover the exact phrasing people type, checks SERPs for winnability, and uses Keyword Planner/Ahrefs/Semrush exports when the user has access. Activates when: choosing or reviewing SEO keywords, meta keywords, page titles, article topics or slugs, landing page copy targeting search, App Store/ASO keyword fields, multilingual keyword sets, 'what should we rank for', 'keyword analysis', or auditing why a page doesn't rank. Also invoke it as a validation pass whenever another skill or task produces a keyword list.
development
Automate YooAsset hot-update and asset bundles — build bundles, run Editor simulate builds, manage Collector groups, analyze BuildReport, and validate runtime. Use when building or simulating YooAsset bundles, configuring collectors, or validating hot-update assets, even if the user just says "热更" or "打AB包". 自动化 YooAsset 热更新与资源包(构建 bundle、编辑器模拟构建、管理 Collector 分组、分析 BuildReport、运行时校验);当用户要构建或模拟 YooAsset 资源包、配置 collector、或校验热更资源时使用。
development
Source-anchored design rules for YooAsset v2.3.18 — initialization, default-package shortcuts, play modes, asset handles, loading, updates, filesystem, build, and pitfalls. Use when writing or reviewing YooAsset code, initializing packages, loading assets via handles, setting up hot-update/download, or choosing a play mode, even if the user just says "热更" or "资源包". 为 YooAsset v2.3.18 提供源码锚定的设计规则(初始化、默认包快捷方式、运行模式、资源句柄、加载、更新、文件系统、构建、陷阱);当用户要编写或审查 YooAsset 代码、初始化 package、用句柄加载资源、配置热更/下载、或选择运行模式时使用。
data-ai
Last-resort guidance for safely hand-editing Unity serialized YAML (.unity/.prefab/.asset/.meta/ProjectSettings) — reference/fileID repair, GUID safety, and merge-conflict fixes. Use when REST cannot reach the change and YAML must be hand-edited — fixing m_Script GUIDs, broken fileID references, .meta files, or merge conflicts, even if the user just says "场景文件打不开" or "引用丢了". 安全手编 Unity 序列化 YAML(.unity/.prefab/.asset/.meta/ProjectSettings)的最后手段(引用/fileID 修复、GUID 安全、合并冲突修复);当 REST 无法触达、必须手编 YAML 时使用——修复 m_Script GUID、断裂 fileID 引用、.meta 文件或合并冲突。