gameobject-component-modify

Modify GameObject component fields in Unity Prefabs or Scenes.

Updated May 3, 2026
One-click install
npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill gameobject-component-modify-rakamenouya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-modify
Source: https://github.com/RakameNouya/MR-Bab_10_and_Kel_3/tree/main/.gemini/skills/gameobject-component-modify
Command: npx skills add https://github.com/RakameNouya/MR-Bab_10_and_Kel_3 --skill gameobject-component-modify-rakamenouya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ReflectorNet, and includes scripts (resource) components.

What problem does it solve?

Modifying GameObject Component fields without altering the GameObject structure saves time and reduces potential errors.

Core Features & Use Cases

  • Component Modification: Directly edit component fields and properties.
  • Modification Surfaces: Utilize 'componentDiff', 'pathPatches', or 'jsonPatch' for different types of modifications.
  • Use Case: Before deploying assets, quickly adjust Component parameters on a Prefab or Scene object to ensure optimal functionality.

Quick Start

To modify a component's field, run 'unity-mcp-cli run-tool gameobject-component-modify --input '{"gameObjectRef": "string_value", "componentRef": "string_value", "pathPatches": "string_value"}'

Frequently Asked Questions about gameobject-component-modify

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

FAQPage Schema
How do I modify component fields on a Unity GameObject without altering its structure?

You can modify component fields on a Unity GameObject by applying targeted patches to specific properties on Prefabs or active Scenes. This approach directly edits component parameters, saving time and reducing potential structural errors during asset deployment.

What is the best way to batch update component properties in a Unity Prefab?

Batch updating component properties in a Unity Prefab is best handled using modification surfaces like componentDiff, pathPatches, or jsonPatch. These options allow you to apply complex modifications to multiple fields directly without manually navigating the GameObject hierarchy.

Do I need ReflectorNet to patch component parameters on Unity Scene objects?

Yes, you need the ReflectorNet dependency to patch component parameters on Unity Scene objects. The tool requires Reflector libraries specifically for field manipulation, enabling the reflection needed to modify internal component data on active Scene assets.

Does Unity component modification support different types of patches?

Yes, Unity component modification supports different types of patches including componentDiff, pathPatches, and jsonPatch. This allows you to handle various complex modifications by choosing the appropriate patch format for your specific GameObject field adjustment requirements.

Why use a patching approach instead of directly editing a Unity GameObject?

Using a patching approach instead of directly editing a Unity GameObject prevents accidental structural changes. By targeting only specific component fields, you minimize potential errors and ensure that only the necessary parameters are adjusted before deploying assets.