gameobject-modify

Modify GameObject fields and properties in Unity Prefabs and Scenes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing GameObject properties in Unity manually through the editor is slow and repetitive, especially when the same change must be applied to many objects at once. This Skill lets you batch-modify GameObject fields and properties in an opened Prefab or the active Scene through the unity-mcp-cli. ## Core Features & Use Cases - Batch Modification: Modify multiple GameObjects in a single call by providing matching arrays of GameObject references and SerializedMember diffs. - Flexible Object Targeting: Locate GameObjects by instanceID, hierarchy path, name, asset path, or asset GUID. - Safe Partial Updates: Unknown or misplaced fields are ignored and reported in the result logs, so you can verify exactly what changed. - Use Case: Rename and reposition a set of UI elements in a Scene by passing their instanceIDs along with the new name and transform values in one command. ## Quick Start Ask the AI to modify the position and name of specific GameObjects in the active Unity Scene using the gameobject-modify tool.

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 GameObjects at once in Unity?▼

Provide a gameObjectRefs array and a gameObjectDiffs array of the same length to the gameobject-modify tool. Each diff at index i is applied to the GameObject reference at index i, letting you batch changes in one call.

How do I reference a GameObject in a Unity Scene or Prefab?▼

Use a GameObjectRef with instanceID as the preferred identifier, or fall back to hierarchy path, name, assetPath, or assetGuid. The instanceID has the highest priority and is the recommended option.

Can I modify GameObject components with this tool?▼

No, component fields and properties should be modified with the gameobject-component-modify tool instead. This tool targets GameObject-level fields and properties only.

What happens if I pass an invalid field to gameobject-modify?▼

Unknown or wrongly located fields and properties are ignored rather than causing a failure. The command result lists all ignored entries so you can verify exactly what was changed.

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

The CLI must be installed globally with npm install -g unity-mcp-cli, or invoked via npx unity-mcp-cli. Refer to the unity-initial-setup skill for detailed installation instructions.