{"id":20117,"plugin_id":"plugins_6aa1c02597c081918e358d72f65bd772","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T23:16:01.383Z","digest":"979f65bfa3496ccc80657e60d6f5b2fbee724f4e51557b8b7e9badd16f61a821","against":null,"payload":{"description":"Creates a Tile Palette asset. Use when the user wants to organize tiles for 2D level design or create a new Tile Palette from scratch. The user can specify the Grid layout, eg. Rectangular, Hexagonal, Isometric.","included_files":[{"relative_path":"scripts/CreatePaletteTemplate.cs","size_in_bytes":5606}],"name":"tilemap-palette-create","skill_md_contents":"---\nname: tilemap-palette-create\ndescription: Creates a Tile Palette asset. Use when the user wants to organize tiles for 2D level design or create a new Tile Palette from scratch. The user can specify the Grid layout, eg. Rectangular, Hexagonal, Isometric.\nrequired_packages:\n  com.unity.2d.tilemap: \">=1.0.0\"\n---\n\n# Tilemap Palette Creation\n\n## Workflow\n\n### Step 1: Parameter Gathering\nWAIT for the user to specify the following parameters if not already provided:\n- **Palette Name**: The name of the asset.\n- **Grid Type**: Rectangular, Hexagonal, or Isometric.\n- **Cell Size**: Optional (defaults based on Grid Type).\n- **Sort Axis**: Required for Isometric palettes.\n\n### Step 2: Asset Creation\nUtilise `UnityEditor.Tilemaps.GridPaletteUtility.CreateNewPalette` to create the Tile Palette asset.\n\n## Branching Logic (Grid Types)\n\n### Path A: Rectangular\n- Use **Automatic** cell sizing. Use cell size: `(1, 1, 0)` as a default.\n\n### Path B: Hexagonal\n- Use cell size: `(0.8659766, 1, 1)`.\n\n### Path C: Isometric\n- Use cell size: `(1, 0.5, 1)`.\n- Use a **Custom Sort Axis** with value `(0, 0, 1)`.\n\n### Path D: Isometric Z As Y\n- Use cell size: `(1, 0.5, 1)`.\n- Use a **Custom Sort Axis** with value `(0, 0, 1)`.\n\n## Post-Creation\nEnsure that there is a `GridPalette` as a sub-asset of the Tile Palette asset.\n\n## References\n\nCode Template: \"scripts/CreatePaletteTemplate.cs\""},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}