object-modify
Installation
SKILL.md
Object / Modify
Modify the specified Unity Object. Allows direct modification of object fields and properties. Use 'object-get-data' first to inspect the object structure before modifying.
Three modification surfaces
Use whichever fits the task:
objectDiff— fullSerializedMemberdiff (legacy, backwards compatible).pathPatches— list of{path, value}pairs routed throughReflector.TryModifyAt; atomic per-path modification, multiple entries can target different depths.jsonPatch— a JSON Merge Patch (RFC 7396, extended with[i]/[key]notation) routed throughReflector.TryPatch; multiple fields at any depth in a single call.
When more than one is supplied they run in this order: jsonPatch → pathPatches → objectDiff. At least one is required.
Path syntax
fieldName, nested/field, arrayField/[i], dictField/[key]. Leading #/ is stripped.