gameobject-duplicate

Duplicate target GameObjects in an opened Prefab or active Scene.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill gameobject-duplicate-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-duplicate
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/gameobject-duplicate
Command: npx skills add https://github.com/sprillion/gem_td --skill gameobject-duplicate-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Duplicates GameObjects in an opened Prefab or in the active Scene, enabling rapid replication of existing objects during Unity development.

Core Features & Use Cases

  • Duplicate target GameObjects in an opened Prefab or in the active Scene to speed up scene setup and prefab preparation.
  • Integrates with the gameobject-find tool to locate targets prior to duplication when needed.
  • Supports batch duplication for multiple targets in a single operation.

Quick Start

Provide the gameObjectRefs list to duplicate the targeted GameObjects in the opened Prefab or active Scene.

Frequently Asked Questions about gameobject-duplicate

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

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

Yes, you can duplicate GameObjects inside an opened Prefab by supplying a gameObjectRefs list with instanceID values. The tool validates the references and returns the newly duplicated objects within that Prefab context.

What do I need to locate target GameObjects before duplicating them?

You need to use the gameobject-find tool to locate your target GameObjects before duplication. This preparatory step provides the required gameObjectRefs list containing instanceID and optional path or name for the batch operation.

What format does the gameObjectRefs list require for duplicating GameObjects?

The gameObjectRefs list requires each entry to contain a valid instanceID and an optional path or name. The tool validates this input structure before proceeding with the GameObject duplication in the Prefab or active Scene.

Can I replicate multiple Unity GameObjects at once to speed up scene setup?

Yes, you can replicate multiple Unity GameObjects at once to speed up scene setup and prefab preparation. The tool supports batch duplication by processing the entire gameObjectRefs list in a single operation.

Does the Unity GameObject duplication tool work with both Prefabs and active Scenes?

Yes, the Unity GameObject duplication tool works with both opened Prefabs and active Scenes. It checks the provided gameObjectRefs and duplicates the targets within whichever context is currently open.