object-modify

Modifies fields and properties of UnityEngine.Object instances via the unity-mcp-cli tool.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill object-modify-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: object-modify
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/object-modify
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill object-modify-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing Unity objects (GameObjects, Components, Assets) programmatically requires knowing their exact serialized structure, and manual edits through the editor are slow and error-prone. This Skill lets you apply targeted modifications to any UnityEngine.Object by reference, changing only the fields and properties you specify. ## Core Features & Use Cases - Targeted Object Modification: Apply partial diffs containing only the fields and properties you want to change, leaving everything else untouched. - Structured Diff Input: Uses a SerializedMember schema with typeName, fields, and props so nested values can be modified precisely. - Detailed Feedback: Returns success status, the updated object data, and logs of modifications plus warnings for unknown or invalid fields. - Use Case: After inspecting a GameObject with object-get-data, update a Transform component's position and a Renderer property in a single call, then verify the returned serialized state. ## Quick Start Ask the AI to modify a Unity object by providing its instanceID and a diff of the fields or properties to change, after inspecting it with object-get-data.

Frequently Asked Questions about object-modify

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

FAQPage Schema
How do I modify a Unity GameObject property from the command line?

Run unity-mcp-cli run-tool object-modify with an input containing the object's instanceID in objectRef and an objectDiff listing the fields or props to change. Only the specified members are modified; everything else stays unchanged.

What is the difference between objectRef and objectDiff in object-modify?

objectRef identifies the target UnityEngine.Object by its instanceID, while objectDiff is a SerializedMember structure holding the new values. The diff should contain only the fields and properties you intend to change.

Do I need to inspect a Unity object before modifying it?

Yes, the documentation recommends using object-get-data first to inspect the object's structure. This ensures the typeName, field names, and property names in your diff match the actual serialized members.

What happens if I include invalid fields in the object diff?

Unknown or invalid fields and properties are reported in the response Logs array rather than silently applied. The response also includes a Success flag and the updated object data so you can verify the result.

Why is unity-mcp-cli not found when running object-modify?

The CLI is either 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 consult the unity-initial-setup skill for full installation steps.