[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792MCSBX9TNT4Y80DAT98WB":3,"skill-same:01M792MCSBX9TNT4Y80DAT98WB":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M792MCSBX9TNT4Y80DAT98WB","unity-tooling",null,"Build editor tooling: EditorWindows, PropertyDrawers, AssetPostprocessors and ScriptedImporters. Use when writing custom Unity editor windows, inspectors, or gizmos.","poorvith-mp\u002Fskills-gamedev","poorvith-mp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F277478855?v=4","01M78Z5K0YH1Z3PX815PGQ96ND","Poorvith M P","01M792GVN0NZ9V49H6Q6BE3S1S",5,"MIT","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funity-tooling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-tooling\nlast_reviewed: 2026-09-06\ngroup: Unity\ndescription: >-\n  Build editor tooling: EditorWindows, PropertyDrawers, AssetPostprocessors and ScriptedImporters.\n  Use when writing custom Unity editor windows, inspectors, or gizmos.\n---\n\n# unity-tooling\n\n## Core Philosophy\nGame development speed is bottlenecked by editor friction. When level designers, game writers, and technical artists have to manually navigate deep inspector hierarchies, input coordinate numbers by hand, or edit JSON files in Notepad, development slows to a crawl and errors multiply. Professional Unity tooling extends the Unity Editor using custom `EditorWindow`, `PropertyDrawer`, `AssetPostprocessor`, and `ScriptedImporter` classes to build bespoke internal tools that make design workflows foolproof and instant.\n\n---\n\n## 4-Step Unity Editor Tooling Architecture\n\n### Step 1: Custom PropertyDrawers & Decorators\n1. **Property Drawers**:\n   - Customize how specific data structures render in the default Inspector.\n   - Use `EditorGUI` and `EditorGUILayout` (or modern UI Toolkit `PropertyField`).\n2. **Validation Decorators**:\n   - Create custom attributes like `[ShowIf(\"hasWeapon\")]` or `[RequiredReference]` that visually warn designers with red error boxes if an asset slot is left empty.\n\n### Step 2: Custom EditorWindows (UI Toolkit vs IMGUI)\n1. **Modern UI Toolkit Standard**:\n   - Build dockable editor windows using UXML and USS stylesheets:\n     - Native flexbox styling, reactive data binding, and high performance.\n2. **Dockable Editor Utilities**:\n   - Level distribution tools, dialogue node graph editors, audio sound bank auditioners, and localization key managers.\n\n### Step 3: Automated Asset Postprocessors (`AssetPostprocessor`)\n1. **Enforcing Art Pipeline Standards**:\n   - Automatically configure imported textures, models, and audio clips without human intervention:\n     - Set all UI sprites to Sprite (2D and UI) with Power-of-Two compression.\n     - Strip animation tracks and blendshapes from rigid static props.\n     - Clamp 4K texture imports to 2048px maximum size.\n     - Convert audio imports to Vorbis\u002FADPCM based on file duration.\n\n### Step 4: Custom Asset Importers (`ScriptedImporter`)\n1. **Bespoke File Format Parsing**:\n   - Create native importers for custom studio file extensions (e.g. `.dialogue`, `.voxel`, `.yarn`):\n     - Maps raw external text or binary files directly into native Unity assets (ScriptableObjects or Prefabs) upon dragging into the Project view.\n\n---\n\n## Deliverable Format: Production Automated Art Asset Postprocessor\n\n```csharp\n#if UNITY_EDITOR\nusing UnityEditor;\nusing UnityEngine;\n\npublic class TextureAndModelPostprocessor : AssetPostprocessor {\n    \u002F\u002F Automatically sanitize texture imports\n    private void OnPreprocessTexture() {\n        TextureImporter importer = (TextureImporter)assetImporter;\n\n        \u002F\u002F Auto-configure UI icons\n        if (assetPath.Contains(\"Assets\u002FArt\u002FUI\u002F\")) {\n            importer.textureType = TextureImporterType.Sprite;\n            importer.mipmapEnabled = false;\n        }\n\n        \u002F\u002F Auto-configure 3D model textures\n        if (assetPath.Contains(\"Assets\u002FArt\u002FTextures\u002F\")) {\n            importer.maxTextureSize = 2048;\n            TextureImporterPlatformSettings settings = importer.GetDefaultPlatformTextureSettings();\n            settings.format = TextureImporterFormat.Automatic;\n            settings.textureCompression = TextureImporterCompression.CompressedHQ;\n            importer.SetPlatformTextureSettings(settings);\n        }\n    }\n\n    \u002F\u002F Automatically sanitize 3D FBX imports\n    private void OnPreprocessModel() {\n        ModelImporter importer = (ModelImporter)assetImporter;\n\n        \u002F\u002F Strip animations from environment props\n        if (assetPath.Contains(\"Assets\u002FArt\u002FEnvironment\u002F\")) {\n            importer.importAnimation = false;\n            importer.materialImportMode = ModelImporterMaterialImportMode.None;\n            importer.isReadable = false; \u002F\u002F Free CPU memory\n        }\n    }\n}\n#endif\n```\n\n---\n\n## Worked Example: Custom Level Palette Painter Window\n\n- **Problem**: Level designers spent 4 hours per room manually dragging prefab assets from the Project folder, placing them, and zeroing out their rotation coordinates.\n- **Solution**: Built an `EditorWindow` called `PaletteSpawnerWindow`. Designers press a hotkey, select a category (\"Props - Furniture\"), and click directly on the terrain geometry in the Scene view to spawn randomly rotated props snapped to the surface normal.\n- **Outcome**: Level dressing time per room decreased from 4 hours to 35 minutes.\n\n---\n\n## Verification Checklist\n\n- [ ] All editor-specific scripts placed inside an `Editor\u002F` folder or wrapped in `#if UNITY_EDITOR` to prevent build compilation failures.\n- [ ] `AssetPostprocessor` rules enforce compression, mipmapping, and size limits automatically.\n- [ ] Custom `PropertyDrawer` scripts implement proper `GetPropertyHeight()` calculations.\n- [ ] Heavy editor processes use `EditorUtility.DisplayProgressBar()` and `EditorUtility.ClearProgressBar()`.\n- [ ] All editor-modified scene objects properly register undo actions via `Undo.RecordObject()`.\n\n---\n\n## Anti-Patterns\n\n- **Leaking Editor Code into Standalone Builds**: Forgetting `#if UNITY_EDITOR` on scripts importing `UnityEditor`, causing the entire production CI\u002FCD build to fail.\n- **Modifying Scene State Without `Undo`**: Mutating GameObjects programmatically without `Undo.RecordObject()`, preventing designers from using Ctrl+Z.\n- **Heavy Asset Scans in `OnGUI()`**: Executing file I\u002FO or `AssetDatabase.FindAssets()` inside high-frequency `OnGUI()` loops, freezing the editor.\n","# unity-tooling\n\n## Core Philosophy\nGame development speed is bottlenecked by editor friction. When level designers, game writers, and technical artists have to manually navigate deep inspector hierarchies, input coordinate numbers by hand, or edit JSON files in Notepad, development slows to a crawl and errors multiply. Professional Unity tooling extends the Unity Editor using custom `EditorWindow`, `PropertyDrawer`, `AssetPostprocessor`, and `ScriptedImporter` classes to build bespoke internal tools that make design workflows foolproof and instant.\n\n---\n\n## 4-Step Unity Editor Tooling Architecture\n\n### Step 1: Custom PropertyDrawers & Decorators\n1. **Property Drawers**:\n   - Customize how specific data structures render in the default Inspector.\n   - Use `EditorGUI` and `EditorGUILayout` (or modern UI Toolkit `PropertyField`).\n2. **Validation Decorators**:\n   - Create custom attributes like `[ShowIf(\"hasWeapon\")]` or `[RequiredReference]` that visually warn designers with red error boxes if an asset slot is left empty.\n\n### Step 2: Custom EditorWindows (UI Toolkit vs IMGUI)\n1. **Modern UI Toolkit Standard**:\n   - Build dockable editor windows using UXML and USS stylesheets:\n     - Native flexbox styling, reactive data binding, and high performance.\n2. **Dockable Editor Utilities**:\n   - Level distribution tools, dialogue node graph editors, audio sound bank auditioners, and localization key managers.\n\n### Step 3: Automated Asset Postprocessors (`AssetPostprocessor`)\n1. **Enforcing Art Pipeline Standards**:\n   - Automatically configure imported textures, models, and audio clips without human intervention:\n     - Set all UI sprites to Sprite (2D and UI) with Power-of-Two compression.\n     - Strip animation tracks and blendshapes from rigid static props.\n     - Clamp 4K texture imports to 2048px maximum size.\n     - Convert audio imports to Vorbis\u002FADPCM based on file duration.\n\n### Step 4: Custom Asset Importers (`ScriptedImporter`)\n1. **Bespoke File Format Parsing**:\n   - Create native importers for custom studio file extensions (e.g. `.dialogue`, `.voxel`, `.yarn`):\n     - Maps raw external text or binary files directly into native Unity assets (ScriptableObjects or Prefabs) upon dragging into the Project view.\n\n---\n\n## Deliverable Format: Production Automated Art Asset Postprocessor\n\n```csharp\n#if UNITY_EDITOR\nusing UnityEditor;\nusing UnityEngine;\n\npublic class TextureAndModelPostprocessor : AssetPostprocessor {\n    \u002F\u002F Automatically sanitize texture imports\n    private void OnPreprocessTexture() {\n        TextureImporter importer = (TextureImporter)assetImporter;\n\n        \u002F\u002F Auto-configure UI icons\n        if (assetPath.Contains(\"Assets\u002FArt\u002FUI\u002F\")) {\n            importer.textureType = TextureImporterType.Sprite;\n            importer.mipmapEnabled = false;\n        }\n\n        \u002F\u002F Auto-configure 3D model textures\n        if (assetPath.Contains(\"Assets\u002FArt\u002FTextures\u002F\")) {\n            importer.maxTextureSize = 2048;\n            TextureImporterPlatformSettings settings = importer.GetDefaultPlatformTextureSettings();\n            settings.format = TextureImporterFormat.Automatic;\n            settings.textureCompression = TextureImporterCompression.CompressedHQ;\n            importer.SetPlatformTextureSettings(settings);\n        }\n    }\n\n    \u002F\u002F Automatically sanitize 3D FBX imports\n    private void OnPreprocessModel() {\n        ModelImporter importer = (ModelImporter)assetImporter;\n\n        \u002F\u002F Strip animations from environment props\n        if (assetPath.Contains(\"Assets\u002FArt\u002FEnvironment\u002F\")) {\n            importer.importAnimation = false;\n            importer.materialImportMode = ModelImporterMaterialImportMode.None;\n            importer.isReadable = false; \u002F\u002F Free CPU memory\n        }\n    }\n}\n#endif\n```\n\n---\n\n## Worked Example: Custom Level Palette Painter Window\n\n- **Problem**: Level designers spent 4 hours per room manually dragging prefab assets from the Project folder, placing them, and zeroing out their rotation coordinates.\n- **Solution**: Built an `EditorWindow` called `PaletteSpawnerWindow`. Designers press a hotkey, select a category (\"Props - Furniture\"), and click directly on the terrain geometry in the Scene view to spawn randomly rotated props snapped to the surface normal.\n- **Outcome**: Level dressing time per room decreased from 4 hours to 35 minutes.\n\n---\n\n## Verification Checklist\n\n- [ ] All editor-specific scripts placed inside an `Editor\u002F` folder or wrapped in `#if UNITY_EDITOR` to prevent build compilation failures.\n- [ ] `AssetPostprocessor` rules enforce compression, mipmapping, and size limits automatically.\n- [ ] Custom `PropertyDrawer` scripts implement proper `GetPropertyHeight()` calculations.\n- [ ] Heavy editor processes use `EditorUtility.DisplayProgressBar()` and `EditorUtility.ClearProgressBar()`.\n- [ ] All editor-modified scene objects properly register undo actions via `Undo.RecordObject()`.\n\n---\n\n## Anti-Patterns\n\n- **Leaking Editor Code into Standalone Builds**: Forgetting `#if UNITY_EDITOR` on scripts importing `UnityEditor`, causing the entire production CI\u002FCD build to fail.\n- **Modifying Scene State Without `Undo`**: Mutating GameObjects programmatically without `Undo.RecordObject()`, preventing designers from using Ctrl+Z.\n- **Heavy Asset Scans in `OnGUI()`**: Executing file I\u002FO or `AssetDatabase.FindAssets()` inside high-frequency `OnGUI()` loops, freezing the editor.\n",{"name":5,"group":24,"description":7,"last_reviewed":25},"Unity",1788652800000,"main","d661d370a67c4532034e3d1d87c4aec237077f34","skills\u002Funity-tooling",0,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskillary","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp","poorvithmp.com","Shipping tools for problems people notice too late.","2026-10-02 21:32:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add poorvith-mp\u002Fskills-gamedev --skill unity-tooling",{"tool":42,"command":43},"bunx","bunx skills add poorvith-mp\u002Fskills-gamedev --skill unity-tooling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add poorvith-mp\u002Fskills-gamedev --skill unity-tooling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funity-tooling\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"evals\u002Frouting.yaml","REFERENCE","参考文档",928,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funity-tooling\u002Fevals\u002Frouting.yaml",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"unity-tooling.skill","OTHER","其他",3205,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funity-tooling\u002Funity-tooling.skill",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M792N6JWJ1J9XBK6HKFHWRHA","unreal-worlds","Build open worlds with World Partition, Landscape, procedural foliage, HLOD and level streaming. Use when sculpting landscapes, biomes, or World Partition in Unreal.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-worlds\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M792N3JHMS0FWY4YJJ4X60PV","unreal-world-builder","Moved to unreal-worlds in skills-gamedev. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-world-builder\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M792N0XGH0E9XK3ZCR34Z18B","unreal-technical-artist","Moved to unreal-tech-art in skills-gamedev. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-technical-artist\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M792MXKCZ26XGP5RDQHDWRWS","unreal-tech-art","Own the UE5 visual pipeline: Material Editor, Niagara VFX and Procedural Content Generation. Use when creating Unreal materials, Niagara visual effects, or Lumen setups.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-tech-art\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M792MRZ9PB1MNFKPNVDB5AJP","unreal-systems","Work the C++\u002FBlueprint continuum with Nanite, Lumen and the Gameplay Ability System. Use when developing Unreal Engine gameplay in C++, Blueprints, or GAS.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-systems\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M792MQGJ5S2EFDAD5BN5B8V3","unreal-systems-engineer","Moved to modernized catalog in skillary. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-gamedev\u002Fblob\u002Fmain\u002Fskills\u002Funreal-systems-engineer\u002FSKILL.md",[],[]]