unity-gameobject

Create, modify, and query GameObjects in Unity scenes via batch API calls.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-gameobject-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-gameobject-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Unity scene hierarchies object-by-object through manual editor work or one-call-per-object APIs is slow and error-prone. This Skill provides structured create, delete, duplicate, rename, transform, parenting, and query operations on GameObjects, with batch variants that collapse N API calls into one. ## 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 and hierarchy control: Set world/local position, rotation, scale, RectTransform UI properties, parent-child relationships, and sibling order. - Batch-first operations: Every common action has a *_batch variant so multi-object edits (e.g., tagging 20 enemies) take a single call. - Use Case: Build a room layout by batch-creating a floor and walls, batch-setting their transforms, and batch-tagging them — three calls instead of nine. ## Quick Start Ask the AI to create a plane named Floor and two cubes named Wall1 and Wall2 in the Unity scene, then move the walls to x = -5 and x = 5 using the batch transform skill.

Frequently Asked Questions about unity-gameobject

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

FAQPage Schema
How do I create a GameObject in Unity programmatically?

Use gameobject_create with a name and optional primitiveType such as Cube, Sphere, or Empty, plus position and parent identifiers. For multiple objects, gameobject_create_batch accepts a JSON array of items in one call.

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

Use gameobject_set_transform_batch with an items array where each entry has an identifier (entityId, name, instanceId, or path) plus position, rotation, or scale fields. This handles all objects in a single API call instead of one call per object.

Does gameobject_set_transform support UI RectTransform properties?

Yes, it accepts anchoredPos, anchorMin, anchorMax, pivot, sizeDelta, and width/height parameters for UI elements. These RectTransform fields are ignored on regular 3D Transforms, and localPos works for both 3D and UI objects.

Why does gameobject_delete return MODE_FORBIDDEN?

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

What is the difference between entityId and instanceId in Unity object targeting?

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

Why does gameobject_move or gameobject_set_position not exist?

Those skills do not exist; use gameobject_set_transform instead, which handles position, rotation, and scale together. Similarly, use component_add for adding components and gameobject_get_info for reading transform data.