gameobject-modify

Modify Unity GameObject fields in an opened Prefab or active Scene using diffs and patches.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to modify Unity GameObject fields and properties directly in an opened Prefab or in the active Scene, allowing batch edits across multiple objects.

Core Features & Use Cases

  • Modify GameObject fields and properties for one or many objects using three modification surfaces per GameObject: full SerializedMember diffs (gameObjectDiffs), per-path value patches (pathPatchesPerGameObject), and JSON Merge Patches (jsonPatchesPerGameObject).
  • Supports aligned per-object edits across multiple targets with an explicit order: jsonPatch → pathPatches → diff.
  • Real-world use case: update a group of enemy GameObjects to adjust a shared component value across a level without opening each instance.

Quick Start

Supply the target GameObjects and corresponding modification surfaces to apply changes in the opened Prefab or active Scene.

Frequently Asked Questions about gameobject-modify

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

FAQPage Schema
How do I modify multiple Unity GameObjects at once?

You can batch modify Unity GameObjects by aligning gameObjectRefs with corresponding modification data, applying changes to fields and properties across an active Scene or opened Prefab.

How do I batch update component values across a Unity scene?

Batch update component values across a Unity scene by applying SerializedMember diffs or per-path value patches to multiple GameObjects simultaneously without opening each instance.

What is the best way to apply JSON patches to Unity prefabs?

Applying JSON Merge Patches to Unity prefabs uses the jsonPatchesPerGameObject modification surface, executing before path patches and diffs to update target objects.

Do I need an opened Prefab or Scene to modify GameObjects?

Yes, modifying GameObjects requires an opened Prefab or active Scene in Unity, along with valid path syntax for applying diffs and patches to target objects.

What is the execution order when applying multiple modifications to a GameObject?

The execution order for multiple modifications is jsonPatch first, then pathPatches, and finally diff, ensuring structured application of changes to the GameObject.

Can I modify GameObject fields without opening each instance in Unity?

Yes, you can modify GameObject fields without opening each instance by providing SerializedMember diffs or path patches to batch edit shared component values across a level.