unity-gameobject

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

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-gameobject-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-gameobject-du-qwq

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. This Skill exposes those GameObject operations as callable skills, including batch variants that reduce N API calls to one when working with multiple objects. ## Core Features & Use Cases - Full GameObject Lifecycle: Create primitives or empty objects, duplicate, rename, delete, and toggle active state, individually or in batch. - Transform & Hierarchy Control: Set world/local position, rotation, scale, RectTransform UI properties, and parent-child relationships. - Search & Inspection: Find objects by name, tag, layer, or component, and retrieve detailed info including children and components. - Use Case: Build a level layout by batch-creating a floor and walls, batch-positioning them, and batch-tagging them as "Wall"—three calls instead of dozens. ## 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.

Frequently Asked Questions about unity-gameobject

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

FAQPage Schema
How do I create and position GameObjects in Unity programmatically?

Use gameobject_create with a name, optional primitiveType (Cube, Sphere, Plane, etc.), and x/y/z position. For multiple objects, gameobject_create_batch accepts a JSON array of items and creates them all in one call.

How do I move or rotate a GameObject in Unity?

Use gameobject_set_transform, which handles position, rotation, and scale together via posX/posY/posZ, rotX/rotY/rotZ, and scale parameters. Separate move or rotate skills do not exist; this single skill covers all transform changes.

Can I edit multiple Unity GameObjects in one operation?

Yes, batch variants exist for create, delete, duplicate, rename, set_transform, set_active, set_parent, set_layer, and set_tag. Each accepts an items array so 2+ objects are processed in a single API call instead of N calls.

Does GameObject targeting work across different Unity versions?

All single-object skills accept entityId, instanceId, path, and name identifiers. On Unity 6000.4+ use entityId since instanceId is reported as 0; on earlier versions instanceId is preferred. Priority is entityId > instanceId > path > name.

Why does gameobject_delete fail in Approval or Auto mode?

gameobject_delete and gameobject_delete_batch are marked 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 skill; gameobject_add_component does not exist in the GameObject module.