Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Modifies serializable fields and properties of a Unity Object via object diffs, path patches, or JSON Merge Patch.
Use this skill ↓18% 82%+64 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Not used yet
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.
Use whichever fits the task:
objectDiff — full SerializedMember diff (legacy, backwards compatible).pathPatches — list of {path, value} pairs routed through Reflector.TryModifyAt; atomic per-path modification, multiple entries can target different depths.jsonPatch — a JSON Merge Patch (RFC 7396, extended with [i]/[key] notation) routed through Reflector.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.
fieldName, nested/field, arrayField/[i], dictField/[key]. Leading #/ is stripped.
unity-mcp-cli run-tool object-modify --input '{
"objectRef": "string_value",
"objectDiff": "string_value",
"pathPatches": "string_value",
"jsonPatch": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool object-modify --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool object-modify --input-file - <<'EOF' {"param": "value"} EOF
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.