unity-gameobject

Create, modify, and query GameObjects in Unity scenes via batch-capable API skills.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-gameobject-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-gameobject
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/gameobject
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-gameobject-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Unity scene hierarchies object by object through manual editor work is slow and error-prone, especially when creating, renaming, reparenting, or transforming many GameObjects at once. ## 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 one API call. - Transform and Hierarchy Control: Set world/local position, rotation, scale, RectTransform UI properties, parenting, sibling index, layer, and tag. - Query and Targeting: Find objects by name, tag, layer, or component, and target them flexibly via entityId, instanceId, path, or name. - Use Case: Build a level layout by batch-creating a floor and walls, positioning them with one transform batch call, and tagging them all as environment objects in three API calls instead of nine. ## Quick Start Ask the AI to create a parent GameObject with two cube children in the Unity scene and position them using the batch 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 an items array containing per-object properties like name, primitiveType, position, and parent. This reduces N separate API calls to one, and each item can specify its own parent and transform.

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 skills like gameobject_move or gameobject_rotate do not exist; pass posX/posY/posZ or rotX/rotY/rotZ parameters instead.

Can I target Unity objects without knowing their instanceId?

Yes, all single-object skills accept entityId, name, instanceId, or hierarchy path, 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 return MODE_FORBIDDEN?

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

How do I fix TARGET_NOT_FOUND errors in Unity skills?

TARGET_NOT_FOUND means the GameObject, parent, or layer identifier did not match anything in the scene. Run gameobject_find or scene_get_hierarchy to get the exact name, path, or entityId, then retry with that identifier.