gameobject-create

Creates GameObjects in Unity scenes or prefabs with optional parenting, transforms, and primitive shapes.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-create-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-create
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/gameobject-create
Command: npx skills add https://github.com/AdielMag/ClashUp --skill gameobject-create-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually creating and positioning GameObjects in the Unity Editor is repetitive, especially when building scene hierarchies or prototyping layouts. This Skill creates GameObjects programmatically through the unity-mcp-cli, letting you spawn empty objects or primitives with a single command. ## Core Features & Use Cases - GameObject Creation: Create a named GameObject in the currently opened Prefab or active Scene, at root or parented under an existing GameObject. - Transform Setup: Set position, rotation, and scale at creation time in world or local space, reducing follow-up operations. - Primitive Spawning: Pass primitiveType to create Unity primitives (Cube, Sphere, Capsule, Cylinder, Plane, Quad) with their built-in renderer and collider. - Use Case: While prototyping an arena level, ask the AI to spawn a Cube named "CoverWall" parented under the "Environment" object at a specific position, instead of clicking through the Unity hierarchy manually. ## Quick Start Ask the AI to create a new GameObject named "SpawnPoint" in the active scene at position (0, 1, 5) using the gameobject-create tool.

Frequently Asked Questions about gameobject-create

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

FAQPage Schema
How do I create a GameObject in Unity from the command line?▼

Run unity-mcp-cli run-tool gameobject-create with a JSON input containing at least a name field. You can also pass position, rotation, scale, and a parentGameObjectRef to place the new GameObject in the hierarchy in one call.

How do I spawn a Unity primitive like a Cube or Sphere programmatically?▼

Set the primitiveType parameter to one of Sphere, Capsule, Cylinder, Cube, Plane, or Quad. The tool calls GameObject.CreatePrimitive, which automatically adds the matching renderer and collider components.

Can I parent a new GameObject under an existing one in Unity?▼

Yes, provide parentGameObjectRef with the parent's instanceID, hierarchy path, or name. The new GameObject is attached with SetParent using worldPositionStays set to false, and transforms can be applied in local space with isLocalSpace.

Why is unity-mcp-cli not found when running the tool?▼

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli, then retry the gameobject-create command.

Does gameobject-create work inside prefabs or only scenes?▼

It works in both. The GameObject is created in the currently opened Prefab if one is being edited, otherwise in the active Scene, and the result returns a GameObjectRef identifying the created object.