assets-modify

Modify Unity asset files in the Assets folder via the unity-mcp-cli tool.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-modify-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-modify
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/assets-modify
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-modify-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing Unity assets such as Materials, ScriptableObjects, and Prefabs normally requires manual work in the Unity Editor. This Skill lets you programmatically overwrite asset content through the unity-mcp-cli command line, with a safeguard that restricts changes to the Assets folder. ## Core Features & Use Cases - Asset Content Overwrite: Replace the serialized content of any UnityEngine.Object asset (Material, ScriptableObject, Prefab) using a structured JSON payload. - Flexible Asset Referencing: Target assets by instanceID, asset path, or GUID. - Safety Constraint: Modifications are restricted to the Assets folder; assets under Packages cannot be modified. - Use Case: After inspecting a Material with the assets-get-data tool, update its shader properties in bulk by passing the new serialized content directly. ## Quick Start Ask the AI to inspect the asset with assets-get-data first, then run assets-modify with the asset reference and new content to update the Material in the Assets folder.

Frequently Asked Questions about assets-modify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I modify a Unity asset from the command line?▼

Run unity-mcp-cli run-tool assets-modify with a JSON input containing an assetRef (instanceID, path, or GUID) and the new serialized content. For complex multi-line content, pass the JSON via an input file or stdin.

What Unity asset types can be modified with this tool?▼

Any UnityEngine.Object asset can be modified, including Materials, ScriptableObjects, and Prefabs. The asset must be located in the project's Assets folder.

Can I modify assets in the Unity Packages folder?▼

No. Assets located in the Packages folder are read-only for this tool. You must modify assets within the Assets folder instead.

Why should I run assets-get-data before modifying an asset?▼

The assets-get-data tool reveals the asset's current serialized structure, including field and property names. Inspecting first ensures the content you send matches the expected SerializedMember schema and avoids corrupting the asset.

What should I do if unity-mcp-cli is not found?▼

Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.