object-modify

Modify UnityEngine.Object fields and properties using objectRef and objectDiff.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Directly modify fields and properties on UnityEngine.Object instances by applying precise diffs, after inspecting the object structure with object-get-data.

Core Features & Use Cases

  • Direct field and property updates on UnityEngine.Object instances.
  • Pre-modification inspection by using object-get-data to view structure.
  • HTTP API integration via the MCP Plugin to apply object-diff changes to a target object.

Quick Start

Inspect the target object's structure with object-get-data, then call the object-modify API with objectRef and objectDiff to apply your changes.

Frequently Asked Questions about object-modify

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

FAQPage Schema
How do I modify Unity object properties at runtime?

You can modify Unity object fields and properties at runtime by supplying an objectRef and an objectDiff to apply targeted changes to UnityEngine.Object instances, with unknown fields reported back in the response.

Can I update GameObject components without writing a custom script?

Yes, you can update GameObject components directly by providing an objectRef and an objectDiff to the API. This applies precise field and property modifications without requiring a custom script.

What is the best way to apply object diffs to Unity assets during debugging?

The best way to apply object diffs during debugging is to inspect the target's structure first, then call the API with an objectRef and objectDiff to modify specific fields and properties on the Unity asset.

What happens if I include an invalid field when modifying a Unity object?

When modifying a Unity object, any unknown or invalid fields specified in your objectDiff are ignored and reported in the response, ensuring safe application of valid changes.

Do I need to inspect an object before modifying its properties?

While not strictly enforced, you should inspect the object structure first to view available fields and properties, ensuring your objectDiff targets valid paths before applying modifications.