gameobject-component-modify

Modify component fields and properties on GameObjects in Prefabs or Scenes.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill gameobject-component-modify-sprillion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-component-modify
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/gameobject-component-modify
Command: npx skills add https://github.com/sprillion/gem_td --skill gameobject-component-modify-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modify a specific Component on a GameObject in opened Prefab or in a Scene. Allows direct modification of component fields and properties without wrapping in GameObject structure. Use 'gameobject-component-get' first to inspect the component structure before modifying.

Core Features & Use Cases

  • Direct component modification on a GameObject within Prefabs or Scenes.
  • Inspect component structure first using gameobject-component-get to ensure correct targets.
  • Apply precise changes by sending a componentDiff that includes only the fields or props you want to modify.

Quick Start

Use the tool's HTTP API to modify the component by sending gameObjectRef, componentRef, and componentDiff to the endpoint.

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 Unity component fields on a GameObject within a Prefab?▼

You can modify Unity component fields and properties on a GameObject by sending a componentDiff payload detailing the specific changes to the target component.

What is the best way to change properties on a Unity component in an active Scene?▼

Changing properties on a Unity component in an active Scene requires passing a componentDiff payload with the desired field and property updates to the target GameObject.

Do I need to inspect a component structure before modifying a Unity GameObject?▼

Yes, you should inspect the component structure first using gameobject-component-get to ensure correct targets before applying modifications.

Can I update multiple component fields simultaneously on a Unity GameObject?▼

Yes, you can update multiple component fields simultaneously by constructing a componentDiff payload that describes all the fields and props you want to modify.

What are the limitations of directly modifying a Unity component without wrapping in GameObject structure?▼

Direct modification requires accurate gameObjectRef and componentRef identifiers, meaning you must know the exact component structure beforehand to avoid targeting the wrong fields.