assets-modify

Modify Unity asset files via content overrides, path patches, or JSON Merge Patch.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/PMK95/GridSquad --skill assets-modify-pmk95
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-modify
Source: https://github.com/PMK95/GridSquad/tree/main/GridSquadUnity/.agents/skills/assets-modify
Command: npx skills add https://github.com/PMK95/GridSquad --skill assets-modify-pmk95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing Unity assets such as Materials, ScriptableObjects, and Prefabs programmatically requires precise targeting of serialized fields, and manual edits through the editor are slow and error-prone for automated workflows. ## Core Features & Use Cases - Three Modification Surfaces: Apply a full SerializedMember content override, a list of path-scoped patches, or a JSON Merge Patch (RFC 7396), executed in the order jsonPatch → pathPatches → content. - Flexible Path Syntax: Target nested fields, array indices, and dictionary keys with slash-delimited paths like 'planets/[0]/orbitRadius' or 'config/[timeout]'. - Use Case: Update a Material's shader property across multiple assets by referencing each asset via instanceID, path, or GUID and applying a pathPatch to the specific serialized field. ## Quick Start Ask the AI to inspect the asset with assets-get-data first, then run assets-modify with the asset reference and a pathPatch setting the desired field value.

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 file programmatically?▼

Use the unity-mcp-cli run-tool assets-modify command with an assetRef identifying the asset by instanceID, path, or GUID, plus one of content, pathPatches, or jsonPatch. Inspect the asset structure first with assets-get-data before modifying.

What is the difference between content, pathPatches, and jsonPatch?▼

Content is a full SerializedMember override of the asset. pathPatches are {path, value} pairs routed through Reflector.TryModifyAt for targeted field edits. jsonPatch applies a JSON Merge Patch (RFC 7396) through Reflector.TryPatch. When combined they run in order: jsonPatch, pathPatches, content.

Can I modify assets in the Unity Packages folder?▼

No, modifying asset files in the Packages folder is not allowed. You must modify them in the Assets folder instead, even though assetRef can reference objects located in either folder.

What path syntax targets array elements or dictionary keys?▼

Use slash-delimited segments for fields, '[i]' for array or list indices like 'planets/[0]/orbitRadius', and '[key]' for dictionary entries like 'config/[timeout]'. A leading '#/' prefix is stripped automatically.

Why is unity-mcp-cli not found when running the command?▼

The CLI is not installed or not on your PATH. Install it globally with 'npm install -g unity-mcp-cli' or invoke it via 'npx unity-mcp-cli', and see the unity-initial-setup skill for detailed installation steps.