Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates a Unity prefab or Prefab Variant at a project asset path from a scene GameObject or existing prefab.
Use this skill ↓18% 91%+73 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Not used yet
Create a prefab from a GameObject in the current active scene. The prefab will be saved in the project assets at the specified path. Creates folders recursively if they do not exist. If the source GameObject is already a prefab instance and 'connectGameObjectToPrefab' is true, a Prefab Variant is created automatically. To create a Prefab Variant from an existing prefab asset, provide 'sourcePrefabAssetPath' instead of 'gameObjectRef'. Use 'gameobject-find' tool to find the target GameObject first.
prefabAssetPath — required. Must start with Assets/ and end with .prefab.gameObjectRef — scene GameObject to convert (or to seed a Prefab Variant from when it is already a prefab instance).sourcePrefabAssetPath — existing prefab asset to seed a Prefab Variant from. Cannot be combined with gameObjectRef.connectGameObjectToPrefab (default true) — when sourcing from a scene GameObject, connect the scene object to the new prefab asset (becoming a prefab instance). Ignored for sourcePrefabAssetPath (always creates a variant).Creates intermediate folders along prefabAssetPath if they don't already exist. Returns an AssetObjectRef pointing at the new prefab asset.
unity-mcp-cli run-tool assets-prefab-create --input '{
"prefabAssetPath": "string_value",
"gameObjectRef": "string_value",
"sourcePrefabAssetPath": "string_value",
"connectGameObjectToPrefab": false
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool assets-prefab-create --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool assets-prefab-create --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.