gameobject-set-parent

Reparent a batch of GameObjects under a new parent in a Unity Prefab or Scene.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-set-parent-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-set-parent
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/gameobject-set-parent
Command: npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-set-parent-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Reorganizing Unity hierarchies by hand is slow and error-prone, especially when moving many GameObjects at once. This Skill reparents a list of GameObjects under a new parent in the currently opened Prefab or active Scene, reporting per-item failures without aborting the whole batch. ## Core Features & Use Cases - Batch Reparenting: Moves multiple GameObjects under a single new parent in one call via the unity-mcp-cli tool. - World Position Control: The worldPositionStays flag preserves each child's world-space transform during reparenting, matching Transform.SetParent semantics. - Fault-Tolerant Status Reporting: Per-item resolve errors are appended to the returned status string instead of throwing, and the scene is marked dirty only when at least one reparent succeeds. - Use Case: After locating enemies with the gameobject-find skill, group all of them under an 'Enemies' container GameObject in the active scene while keeping their world positions intact. ## Quick Start Ask the AI to reparent the found GameObjects under a chosen parent in the open Unity scene while keeping their world positions unchanged.

Frequently Asked Questions about gameobject-set-parent

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

FAQPage Schema
How do I reparent multiple GameObjects in Unity at once?▼

Call the gameobject-set-parent tool with a list of GameObject references and a single parent reference. Each child is reparented independently, and per-item failures are reported in the returned status string without aborting the batch.

How to keep world position when changing a GameObject parent in Unity?▼

Set the worldPositionStays input to true, which is the default. This passes the flag to Transform.SetParent so each GameObject keeps its world-space position, rotation, and scale after reparenting.

How do I find GameObjects before reparenting them in Unity?▼

Use the gameobject-find skill first to locate target GameObjects and obtain their references. References can be resolved by instanceID, hierarchy path, or name, with instanceID having the highest priority.

Does reparenting work in both Prefab mode and the active Scene?▼

Yes, the tool operates on GameObjects in the currently opened Prefab or in the active Scene. After at least one successful reparent, it marks the active scene dirty and repaints editor windows.

What happens if the parent GameObject reference cannot be resolved?▼

The call returns early with an error string when the parent reference fails to resolve. Individual child resolve errors do not stop the loop; they are appended to the returned status string instead.

Why is unity-mcp-cli not found when running the tool?▼

The CLI must be installed globally with npm install -g unity-mcp-cli, or invoked via npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.