unity-gameobject

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

Updated May 20, 2026
One-click install
npx skills add https://github.com/yuse168/Roomies --skill unity-gameobject-yuse168
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/yuse168/Roomies/tree/main/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/yuse168/Roomies --skill unity-gameobject-yuse168

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 single-object and batch variants for every operation. - Transform & Hierarchy Control: Set world/local position, rotation, scale, RectTransform UI properties, parent-child relationships, and sibling order. - Query & 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 API calls instead of dozens of manual editor steps. ## 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 and position GameObjects in Unity programmatically?▼

Use gameobject_create with a name, optional primitiveType (Cube, Sphere, Plane, etc.), and x/y/z position, or gameobject_create_batch to create multiple objects in one call. Then adjust placement with gameobject_set_transform using world, local, or RectTransform coordinates.

How do I move or rotate multiple Unity objects at once?▼

Use gameobject_set_transform_batch with an items array where each entry identifies an object by entityId, name, instanceId, or path plus the transform fields to change. There is no separate move or rotate skill; position, rotation, and scale are all handled through set_transform.

Can I find Unity GameObjects by tag, layer, or component?▼

Yes, gameobject_find accepts name, tag, layer, and component filters, supports regex name matching, and returns up to a configurable limit of matching objects with their entityId, path, and position. For broader scene searches, the scene module's scene_find_objects is also available.

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.

What is the difference between entityId and instanceId when targeting Unity objects?▼

entityId is the preferred identifier on Unity 6000.4 and newer, where instanceId is reported as 0; instanceId is preferred on older Unity versions. All single-object skills also accept name and hierarchy path, with priority entityId > instanceId > path > name.