gameobject-create

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

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/PMK95/GridSquad --skill gameobject-create-pmk95
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gameobject-create
Source: https://github.com/PMK95/GridSquad/tree/main/GridSquadUnity/.agents/skills/gameobject-create
Command: npx skills add https://github.com/PMK95/GridSquad --skill gameobject-create-pmk95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually creating and positioning GameObjects in Unity scenes or prefabs is repetitive, especially when building hierarchies or spawning primitives during level design and prototyping. This Skill automates GameObject creation through the unity-mcp-cli tool with full control over naming, parenting, and transforms. ## Core Features & Use Cases - GameObject Creation: Spawn a named empty GameObject at the root of the active scene or opened prefab, or parent it under an existing GameObject via instanceID, hierarchy path, or name. - Transform Control: Set position, rotation (Euler angles), and scale at creation time in world or local space, reducing follow-up operations. - Primitive Spawning: Pass a primitiveType (Cube, Sphere, Capsule, Cylinder, Plane, Quad) to create Unity primitives with their built-in renderer and collider components. - Use Case: While building a level, ask the AI to create a Cube named "Platform" parented under "Environment" at position (0, 2, 5), and it returns a GameObjectRef you can use in subsequent operations. ## Quick Start Ask the AI to create a new GameObject named "Player" in the active scene, optionally specifying a parent, position, rotation, scale, or a primitive type like Cube.

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 pipe the JSON via stdin or pass it with --input, and the tool creates the GameObject in the active scene or opened prefab.

How to 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 GameObject is created via GameObject.CreatePrimitive, which automatically adds the appropriate renderer and collider components.

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

Yes, provide parentGameObjectRef with an instanceID, hierarchy path, or name, and the new GameObject is parented using SetParent with worldPositionStays set to false. Without it, the GameObject is created at the scene or prefab root.

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

The CLI is not installed globally or not on your PATH. Install it with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli instead, and check the unity-initial-setup skill for full installation steps.

What is the difference between world and local space when creating GameObjects?▼

Setting isLocalSpace to true applies the position, rotation, and scale relative to the parent GameObject. When false or omitted, the transform values are interpreted in world space coordinates.