gameobject-duplicate

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

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-duplicate-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-duplicate
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/gameobject-duplicate
Command: npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-duplicate-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually duplicating multiple GameObjects in a Unity Scene or Prefab is repetitive and error-prone, especially when working through an AI-assisted workflow. This Skill duplicates a batch of GameObjects atomically and marks affected scenes dirty so changes are saved. ## Core Features & Use Cases - Batch Duplication: Duplicates multiple GameObjects at once using Unity's canonical DuplicateGameObjectsUsingPasteboard routine. - Atomic Resolution: Resolves every GameObject reference on the main thread and throws on any unresolved entry, keeping the batch consistent. - Scene Dirty Tracking: Marks every distinct affected scene as dirty so duplicated objects persist when the scene is saved. - Use Case: After locating a set of enemy spawn point GameObjects with the gameobject-find skill, duplicate all of them in one call to populate a new arena section, then retrieve the duplicates via the post-call Selection. ## Quick Start Ask the AI to duplicate the GameObjects you found with gameobject-find by passing their references to the gameobject-duplicate tool through unity-mcp-cli.

Frequently Asked Questions about gameobject-duplicate

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

FAQPage Schema
How do I duplicate GameObjects in Unity from the command line?▼

Run unity-mcp-cli with the gameobject-duplicate tool, passing a gameObjectRefs array of GameObject references. The tool invokes Unity's DuplicateGameObjectsUsingPasteboard routine and returns refs to the sources, with duplicates available via the post-call Selection.

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

Use the gameobject-find skill first to locate target GameObjects in the opened Prefab or active Scene. It returns GameObjectRef entries with instanceID, path, or name that you pass directly as gameObjectRefs to gameobject-duplicate.

What happens if a GameObject reference cannot be resolved?▼

The tool resolves every input ref on the main thread and throws on any unresolved entry, keeping the batch atomic. No partial duplication occurs, so the scene remains unchanged when a reference fails.

Does duplicating GameObjects mark the Unity scene as dirty?▼

Yes, the tool marks every distinct affected scene as dirty after duplication. This ensures the duplicated objects are saved together with the scene when you save in the Unity Editor.

Why is unity-mcp-cli not found when running the tool?▼

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or invoke it via npx unity-mcp-cli, and check the unity-initial-setup skill for detailed installation steps.