gameobject-set-parent

Sets a parent GameObject for a list of GameObjects in a Unity scene or prefab.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-set-parent-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-set-parent
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/gameobject-set-parent
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill gameobject-set-parent-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Reorganizing GameObject hierarchies in Unity scenes or prefabs manually is repetitive and error-prone, especially when reparenting many objects at once. This Skill automates the reparenting operation through the unity-mcp-cli tool. ## Core Features & Use Cases - Batch Reparenting: Assign a single parent GameObject to a list of GameObjects in one call. - Flexible Object References: Locate GameObjects by instanceID, hierarchy path, name, or asset identifiers. - Position Control: Optionally preserve world position with the worldPositionStays flag. - Use Case: While building a Unity scene, group all enemy character GameObjects under a single 'Enemies' container object to keep the hierarchy organized. ## Quick Start Ask the AI to set the parent of the found GameObjects to a target parent GameObject in the current Unity scene using the gameobject-set-parent tool.

Frequently Asked Questions about gameobject-set-parent

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

FAQPage Schema
How do I set the parent of a GameObject in Unity from the command line?

Run unity-mcp-cli with the gameobject-set-parent tool, passing gameObjectRefs for the children and parentGameObjectRef for the target parent. Use the gameobject-find tool first to obtain the references.

How do I keep a GameObject's world position when reparenting in Unity?

Set the worldPositionStays parameter to true in the input JSON. This preserves the GameObject's world position, rotation, and scale when its parent changes.

Can I reparent multiple GameObjects at once in Unity?

Yes, the gameObjectRefs parameter accepts a list of GameObject references, so all specified objects are reparented to the same parent in a single tool call.

What if unity-mcp-cli is not found when running the tool?

Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.

How do I reference a GameObject for reparenting in Unity?

Provide an instanceID, a hierarchy path such as 'character/hand/finger', a GameObject name, or asset path and GUID. instanceID is the recommended priority reference.