sprite
Manage sprite import settings, slice sprite sheets, assign sprites to renderers, and create or pack sprite atlases in Unity.
Instructions
Manage Unity Sprites and SpriteAtlases. Actions:
get_info: Get sprite import settings and sub-sprites
list: List sprite assets in a folder
set_import_settings: Configure texture type, pixels per unit, filter, compression
slice: Slice a sprite sheet into multiple sprites (grid mode)
get_sprite_renderers: List all SpriteRenderer components in scene
set_sprite: Set the sprite on a SpriteRenderer
get_atlases: List SpriteAtlas assets
create_atlas: Create a new SpriteAtlas
add_to_atlas: Add sprites/folders to a SpriteAtlas
pack_atlas: Pack a SpriteAtlas for the active build target
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Alpha (0-1) | |
| b | No | Blue (0-1) | |
| g | No | Green (0-1) | |
| r | No | Red (0-1) | |
| action | Yes | Sprite action to perform | |
| folder | No | Folder to search (default: Assets) | |
| offsetX | No | Grid offset X | |
| offsetY | No | Grid offset Y | |
| padding | No | Atlas padding in pixels | |
| objectId | No | Instance ID of a GameObject | |
| paddingX | No | Grid padding X | |
| paddingY | No | Grid padding Y | |
| assetPath | No | Path to the sprite/texture asset | |
| atlasPath | No | Path to a SpriteAtlas asset | |
| cellWidth | No | Grid cell width in pixels | |
| sliceMode | No | Slice mode: grid | |
| cellHeight | No | Grid cell height in pixels | |
| filterMode | No | point, bilinear, or trilinear | |
| objectPath | No | Hierarchy path of a GameObject with SpriteRenderer | |
| spriteMode | No | single, multiple, or polygon | |
| spritePath | No | Path to a sprite asset to assign | |
| compression | No | none, low, normal, or high | |
| spritePaths | No | Comma-separated sprite paths to add to atlas | |
| textureType | No | sprite or default | |
| pixelsPerUnit | No | Pixels per unit | |
| enableRotation | No | Allow rotation in atlas packing | |
| maxTextureSize | No | Max texture size (e.g. 1024, 2048) | |
| enableTightPacking | No | Enable tight packing |