unity-gameobject

Create, transform, and organize GameObjects in Unity scene hierarchies.

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-gameobject-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-gameobject-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building and restructuring Unity scene hierarchies requires many repetitive editor operations—creating objects, moving them, parenting them, renaming them—which is slow and error-prone when done one object at a time through manual editor work. ## Core Features & Use Cases - Full GameObject Lifecycle: Create primitives or empty objects, duplicate, rename, delete, and toggle active state, with batch variants that collapse N operations into a single call. - Transform & Hierarchy Control: Set world/local position, rotation, scale, RectTransform UI properties, parenting, and sibling order across multiple objects at once. - Query & Inspection: Find objects by name, tag, layer, or component and retrieve detailed info including children and components. - Use Case: When prototyping a level, create a floor and two walls with gameobject_create_batch, position them with gameobject_set_transform_batch, and tag them with gameobject_set_tag_batch—three calls instead of nine. ## Quick Start Ask the AI to create a plane named Floor and two cubes named Wall1 and Wall2, position the walls at x = -5 and x = 5, and tag both as Wall in the current Unity scene.

Frequently Asked Questions about unity-gameobject

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

FAQPage Schema
How do I create multiple GameObjects in Unity at once?

Use gameobject_create_batch with a JSON array of items specifying name, primitiveType, position, and optional parent. This creates all objects in one call instead of invoking gameobject_create repeatedly, reducing API round trips from N to 1.

How do I move or rotate a GameObject in Unity via script?

Use gameobject_set_transform, which handles position, rotation, and scale together. Separate skills like gameobject_move or gameobject_rotate do not exist; pass posX/posY/posZ, rotX/rotY/rotZ, or local and RectTransform parameters as needed.

Can I target Unity objects by name, path, or instance ID?

Yes, all single-object skills accept entityId, instanceId, path, and name identifiers, with priority entityId > instanceId > path > name. On Unity 6000.4 and later, entityId is preferred because instanceId is reported as 0.

Why does gameobject_delete fail in Approval or Auto mode?

gameobject_delete and gameobject_delete_batch are flagged as high-risk delete operations and return MODE_FORBIDDEN under Approval or Auto modes. They only execute in Bypass mode or when the user explicitly allowlists them.

How do I add a component to a GameObject?

Component management is handled by the separate component module, not this one. Use component_add from the component module; gameobject_add_component does not exist in the GameObject skill set.