Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Modifies fields and properties of a specific Component on a GameObject in an open Prefab or Scene via JSON patches.
30% 65%+35 ptsof test cases passed
Passed 15 of 23 test cases with the skill, and 7 of 23 without it.
3 of 3 safety checks passed
Not used yet
Use whichever fits the task:
componentDiff — 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 → componentDiff. At least one is required.
fieldName, nested/field, arrayField/[i], dictField/[key]. Leading #/ is stripped.
unity-mcp-cli run-tool gameobject-component-modify --input '{
"gameObjectRef": "string_value",
"componentRef": "string_value",
"componentDiff": "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 gameobject-component-modify --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool gameobject-component-modify --input-file - <<'EOF' {"param": "value"} EOF
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.