gameobject-duplicate

Duplicate GameObjects by reference within opened Prefabs or active Scenes.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-duplicate-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-duplicate
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/gameobject-duplicate
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill gameobject-duplicate-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Duplicate GameObjects in an opened Prefab or in the active Scene to accelerate scene setup and prefab modifications.

Core Features & Use Cases

  • Duplicate targeted GameObjects by reference to preserve hierarchy and components.
  • Works within opened Prefabs or active Scenes; use 'gameobject-find' to locate targets.
  • Returns a list of duplicated object references for further automation.

Quick Start

Use unity-mcp-cli run-tool gameobject-duplicate with a JSON input that specifies gameObjectRefs.

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

To duplicate GameObjects in a Unity scene programmatically, provide a gameObjectRefs list specifying instanceID, path, or name to automatically clone the targeted objects while preserving their components and hierarchy.

Can I clone multiple GameObjects inside an opened Unity prefab?

Yes, you can clone multiple GameObjects inside an opened Unity prefab by supplying a list of object references, which duplicates the targeted items within the prefab hierarchy and returns the new object references.

What do I need to identify GameObjects for scene duplication automation?

To identify GameObjects for scene duplication automation, you need to provide a gameObjectRefs list containing the instanceID, hierarchy path, or name of the target objects you want to clone within your active scene or prefab.

Does GameObject duplication preserve the original components and hierarchy?

Yes, GameObject duplication preserves the original components and hierarchy, ensuring that the cloned objects maintain the exact same structure and property settings as the source targets within the scene or prefab.

What is the best way to find and duplicate targeted objects in Unity tooling?

The best way to find and duplicate targeted objects in Unity tooling is to use a gameobject-find mechanism to locate the targets, then pass those references to the duplication tool to receive a list of cloned objects.

What is returned after duplicating GameObjects in a prefab or scene?

After duplicating GameObjects in a prefab or scene, the tool returns a List of duplicated object references, allowing for further automation and downstream modifications on the newly created clones.