gameobject-duplicate

Duplicates GameObjects in an opened Prefab or active Unity Scene via unity-mcp-cli.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually duplicating GameObjects in Unity scenes or prefabs is repetitive and error-prone, especially when automating scene setup. This Skill lets you duplicate one or more GameObjects programmatically through the unity-mcp-cli tool. ## Core Features & Use Cases - GameObject Duplication: Duplicate GameObjects in an opened Prefab or in the active Scene by passing GameObject references. - Flexible Targeting: Identify targets by instanceID, hierarchy path, name, asset path, or asset GUID. - Use Case: While building a level, you locate an enemy spawn point with the gameobject-find tool, then duplicate it ten times across the scene to populate spawn locations without manual copy-paste in the Unity Editor. ## Quick Start Ask the AI to find the target GameObject with gameobject-find and then duplicate it in the active scene using gameobject-duplicate.

Frequently Asked Questions about gameobject-duplicate

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

FAQPage Schema
How do I duplicate a GameObject in Unity from the command line?

Run unity-mcp-cli with the gameobject-duplicate tool and pass a JSON input containing gameObjectRefs. Each reference can specify an instanceID, hierarchy path, or name of the GameObject to duplicate in the active Scene or opened Prefab.

How do I find GameObjects before duplicating them in Unity?

Use the gameobject-find tool first to locate target GameObjects and obtain their references. The returned instanceID, path, or name values can then be passed directly into the gameObjectRefs input of gameobject-duplicate.

Can I duplicate GameObjects inside a Prefab instead of a Scene?

Yes, gameobject-duplicate works on GameObjects in an opened Prefab as well as in the active Scene. Reference the target by instanceID, path, name, assetPath, or assetGuid depending on how the object is identified.

What should I do if unity-mcp-cli is not found?

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

What does gameobject-duplicate return after running?

It returns a result array of GameObjectRef objects representing the duplicated GameObjects. Each entry includes fields such as instanceID, path, name, assetPath, and assetGuid for further scene operations.