unity-gameobject

Create, find, and manipulate GameObjects and transforms in Unity scene hierarchies.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-gameobject-dylan8865
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/Dylan8865/FinalYearProject/tree/main/GameDev/Tester/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-gameobject-dylan8865

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 becomes 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 flexible targeting via entityId, instanceId, path, or name. - Transform & Hierarchy Control: Set world/local position, rotation, scale, RectTransform UI properties, and parent-child relationships in a scene. - Batch-First Operations: Batch variants of every mutating skill reduce N API calls to 1 when operating on 2 or more objects. - 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 parent empty GameObject named Environment with two cube children positioned at x equals -5 and x equals 5 using the batch gameobject skills.

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 a single API call instead of one call per object, and returns per-item success results.

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

Use gameobject_set_transform, which handles position, rotation, and scale together in world or local space. Separate move, rotate, or set_position skills do not exist; pass posX/posY/posZ, rotX/rotY/rotZ, or scale values to this one skill.

How do I find GameObjects by name, tag, or component in Unity?▼

Use gameobject_find with filters for name, tag, layer, or component type, plus optional regex matching and a result limit. It returns matching objects with their entityId, instanceId, path, tag, layer, and position.

What is the difference between entityId and instanceId in Unity?▼

entityId is the preferred identifier on Unity 6000.4 and newer, where instanceId is reported as 0. On older Unity versions, instanceId is preferred. All object skills accept either, plus name and hierarchy path, with priority entityId over instanceId over path over name.

Why does gameobject_delete return MODE_FORBIDDEN?▼

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

Can I set UI RectTransform properties with gameobject skills?▼

Yes, gameobject_set_transform supports RectTransform parameters including anchoredPos, anchorMin, anchorMax, pivot, sizeDelta, and width/height aliases. These apply only to UI elements and are ignored on regular 3D Transforms.