gameobject-set-parent

Reassign Unity GameObjects to a new parent in an opened prefab or scene.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill gameobject-set-parent-igot-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-set-parent
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/game-engineer/develop-unity-ui/references/gameobject-set-parent
Command: npx skills add https://github.com/igot-ai/os-twin --skill gameobject-set-parent-igot-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates reparenting a list of GameObjects to a shared parent within an opened Unity prefab or scene, simplifying hierarchies and deployment.

Core Features & Use Cases

  • Reparent multiple GameObjects to a new parent inside the active Scene or opened Prefab.
  • Supports preserving or resetting world-space positions via worldPositionStays.
  • Integrates with the gameobject-find tool to resolve targets before applying the change.

Quick Start

Call the tool to set the parent of the given GameObjects to the specified parent in the opened prefab or scene.

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 Unity GameObjects in a scene?

To reparent Unity GameObjects in a scene, you reassign their parent to a new target GameObject within an opened prefab or scene, simplifying the hierarchy. This process requires specifying the target GameObjects and the new parent reference.

Can I move multiple GameObjects to a new parent at the same time?

Yes, you can move multiple GameObjects to a new parent simultaneously. The reparenting process accepts a list of GameObject references and reassigns them all to a single shared parent within the active Unity scene or prefab.

Does reparenting Unity GameObjects preserve their world position?

Reparenting Unity GameObjects can preserve their world position by using a worldPositionStays flag. This optional setting ensures the objects maintain their spatial coordinates in the scene when their parent is reassigned.

What is the best way to reorganize a Unity hierarchy automatically?

The best way to reorganize a Unity hierarchy automatically is by using a reparenting tool that resolves target objects and applies parent reassignments in bulk. This simplifies complex scene structures and deployment workflows.

How do I locate GameObjects before reparenting them in Unity?

To locate GameObjects before reparenting them in Unity, the reparenting process integrates with a gameobject-find tool. This tool resolves the target objects in the scene or prefab before applying the hierarchy changes.