gameobject-duplicate

Duplicate target GameObjects in an opened Prefab or active Scene.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Duplicates target GameObjects in an opened Prefab or in the active Scene, enabling rapid replication without manual recreation.

Core Features & Use Cases

  • Duplicates one or more selected GameObjects while preserving hierarchy and components in either prefabs or scenes.
  • Integrates with the gameobject-find tool to locate targets before duplication, returning references to the newly created objects for downstream processing.
  • Use Case: when building multiple instances of a character or prop across a scene or prefab, you can programmatically duplicate and wire references to maintain consistency.

Quick Start

Duplicate the targeted GameObjects in the active Unity scene.

Frequently Asked Questions about gameobject-duplicate

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

FAQPage Schema
How do I duplicate Unity GameObjects programmatically in a scene?▼

You can duplicate multiple GameObjects by sending a JSON payload containing gameObjectRefs to the /api/tools/gameobject-duplicate HTTP API endpoint. It returns updated object references for the newly created duplicates.

Can I batch duplicate prefabs and gameobjects while preserving hierarchy and components?▼

Yes, batch duplication preserves the hierarchy and components of prefabs and gameobjects. The tool replicates one or more selected objects in either an opened Prefab or the active Unity scene.

Do I need to locate Unity scene objects before using the duplicate API?▼

Yes, you must locate target objects before duplication. The workflow integrates with the gameobject-find tool to identify targets, passing the resulting gameObjectRefs to the duplication API for batch replication.

What does the gameobject-duplicate API return after cloning objects?▼

The API returns the updated object references of the newly created duplicates. These returned references allow downstream processing to programmatically wire the newly cloned GameObjects into your Unity project.

When should I use the Unity gameobject duplication API instead of manual cloning?▼

Use the API instead of manual cloning when building multiple instances of characters or props across a scene or prefab. It enables rapid programmatic batch replication while maintaining consistency and returning updated object references.