assets-modify

Apply content overrides, path patches, or JSON patches to Unity asset files.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-modify-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-modify
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/assets-modify
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-modify-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modify Unity asset files safely and predictably by applying explicit patches or full overrides through a controlled CLI workflow.

Core Features & Use Cases

  • Three modification surfaces: content overrides, path patches, and JSON patches to support diverse editing strategies.
  • Enforces you modify only within the Assets/ folder and after inspecting asset data with an inspection tool.
  • Use-case: Update materials' serialized fields en masse, or patch ScriptableObjects while preserving existing data.

Quick Start

Inspect the asset with assets-get-data and then run assets-modify with the appropriate input to apply patches.

Frequently Asked Questions about assets-modify

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

FAQPage Schema
How do I safely modify Unity asset files without breaking existing data?

You can safely modify Unity asset files by applying targeted patches like JSON patches, path patches, or content overrides. This controlled workflow enforces deterministic edits within the Assets/ folder while preserving existing data.

What is the best way to patch ScriptableObjects in Unity en masse?

The best way to patch ScriptableObjects in Unity is by applying path patches or JSON patches. This method allows you to update serialized fields en masse while preserving the existing asset data structure and enforcing deterministic ordering.

How does JSON patching work for Unity assets?

JSON patching for Unity assets works by applying explicit modifications to targeted fields using a syntax that supports simple fields, arrays, and dictionaries. It executes first in the patch ordering chain, followed by path patches and content overrides.

Do I need to inspect Unity asset structure before applying patches?

Yes, you need to inspect Unity asset structure using an inspection tool before applying patches. The workflow requires examining asset data first to ensure your path patches and content overrides target the correct fields deterministically.

Can I modify Unity assets outside the Assets folder?

No, you cannot modify Unity assets outside the Assets/ folder. The patching mechanism enforces this boundary to ensure safe and predictable edits, restricting all content overrides and path patches to files within that directory.

What is the execution order when applying multiple patch types to Unity assets?

The execution order for applying multiple patch types to Unity assets is strictly enforced as JSON patch first, then path patches, and finally content overrides. This deterministic sequence prevents conflicting modifications.