gameobject-duplicate

Duplicates GameObjects in an opened Prefab or active Unity Scene.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill gameobject-duplicate-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-duplicate
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/gameobject-duplicate
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill gameobject-duplicate-ishaansingh-ai

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 working through an AI assistant or automation pipeline. This Skill duplicates one or more GameObjects in an opened Prefab or the active Scene via the unity-mcp-cli tool. ## Core Features & Use Cases - Batch Duplication: Duplicate multiple GameObjects at once by passing an array of GameObject references. - Flexible Targeting: Locate GameObjects by instanceID, hierarchy path, name, asset path, or asset GUID. - Structured Output: Returns a list of GameObjectRef objects identifying the newly created duplicates. - Use Case: While building a level, ask the assistant to find all enemy spawn point GameObjects with 'gameobject-find' and then duplicate them to populate additional waves. ## Quick Start Ask the assistant to find the target GameObject with gameobject-find and then duplicate it in the current 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, passing a gameObjectRefs array that identifies the targets by instanceID, hierarchy path, or name. The tool returns GameObjectRef entries for the newly created duplicates.

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

Use the gameobject-find tool first to locate the target GameObjects in the opened Prefab or active Scene. Then pass the resulting references to gameobject-duplicate as the gameObjectRefs input.

Can I duplicate multiple GameObjects at once in a Unity scene?▼

Yes, the gameObjectRefs parameter accepts an array of GameObject references, so multiple objects can be duplicated in a single call. Each reference can use instanceID, path, name, assetPath, or assetGuid.

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

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

Does gameobject-duplicate work on prefab assets or only open scenes?▼

It works on GameObjects in an opened Prefab or in the active Scene. Assets must be open in the editor context; it does not duplicate arbitrary asset files on disk.