gameobject-component-modify

Modify a specific Component on a GameObject in Prefabs or Scenes using a componentDiff payload.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill gameobject-component-modify-silac1995
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-component-modify
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.claude/skills/gameobject-component-modify
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill gameobject-component-modify-silac1995

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modifying a specific Component on a GameObject in a Prefab or Scene can be error-prone and requires repetitive boilerplate. This Skill lets you target a component directly, bypassing the need to wrap changes in a GameObject structure, and provides a safe workflow with prior inspection guidance.

Core Features & Use Cases

  • Directly update fields and properties of a chosen Component on a GameObject, in either an opened Prefab or the active Scene.
  • Use gameobject-component-get to inspect the component before applying changes, then apply a precise componentDiff to the target.
  • Handles validation of inputs, reports unknown or unsupported fields, and guides safe modification in Unity projects.

Quick Start

Provide the target GameObject and component references, then supply the componentDiff via input file or stdin to apply changes.

Frequently Asked Questions about gameobject-component-modify

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

FAQPage Schema
How do I directly modify a Unity component on a GameObject in a Prefab?▼

To directly modify a Unity component on a GameObject, you supply a structured JSON input with a componentDiff payload to locate the target and apply field updates with validation and error reporting.

What is the best way to update component fields in Unity scenes without boilerplate?▼

The best way to update component fields in Unity scenes without boilerplate is using a structured JSON componentDiff that bypasses GameObject wrapping, directly applying changes with built-in validation and error reporting.

Does modifying a Unity component require unity-mcp-cli to apply changes?▼

Yes, modifying a Unity component through this approach requires unity-mcp-cli, which processes the structured JSON input to locate the GameObject and apply the specified component changes safely.

Can I inspect a Unity component before applying a componentDiff to update its properties?▼

Yes, you should inspect a Unity component before applying a componentDiff by using gameobject-component-get, ensuring you understand the target fields before directly applying modifications to the active Scene or Prefab.

What happens if I include unknown or unsupported fields in a Unity component modification payload?▼

If you include unknown or unsupported fields in a Unity component modification payload, the process handles validation of inputs, reports the unknown fields, and guides safe modification to prevent errors in your Unity project.

Why use a componentDiff instead of updating the entire GameObject structure in Unity?▼

Using a componentDiff instead of updating the entire GameObject structure avoids repetitive boilerplate and errors, allowing precise and direct updates to specific component fields and properties on a target GameObject.