assets-prefab-instantiate

Instantiate a Unity prefab into the active scene with optional transform and parent path.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually placing prefabs into a Unity scene through the editor is repetitive, especially when building or modifying scenes programmatically. This Skill instantiates any prefab asset into the currently active scene with precise control over its name, parent, and transform. ## Core Features & Use Cases - Prefab Instantiation: Place any prefab asset into the active scene by providing its project asset path. - Transform Control: Set position, rotation (Euler angles), and scale in world or local space relative to a parent. - Hierarchy Placement: Parent the new GameObject under an existing scene path, with the last path segment becoming the new GameObject's name. - Use Case: While prototyping a level, ask the AI to spawn an enemy prefab at a specific spawn point under the 'Enemies' parent object, then iterate on placement without touching the editor. ## Quick Start Use the assets-prefab-instantiate skill to place the prefab at Assets/Prefabs/Enemy.prefab into the active scene under the path Enemies/Enemy_01 at position 0, 1, 5.

Frequently Asked Questions about assets-prefab-instantiate

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

FAQPage Schema
How do I instantiate a prefab in a Unity scene from the command line?▼

Run unity-mcp-cli with the assets-prefab-instantiate tool, passing the prefab asset path and a destination GameObject path as JSON input. The tool places the prefab in the currently active scene and returns a reference to the new GameObject.

How do I find a prefab asset path in a Unity project?▼

Use the assets-find tool to search the project for prefab assets before instantiating. It returns asset paths starting with 'Assets/' that you can pass directly as the prefabAssetPath parameter.

Can I set position and rotation when spawning a prefab in Unity?▼

Yes, the tool accepts optional position, rotation, and scale parameters as Vector3 values, with rotation given in Euler angles. Set isLocalSpace to true to apply the transform relative to the parent instead of world space.

Why does prefab instantiation fail with a gameObjectPath error?▼

The parent portion of gameObjectPath must already exist in the active scene; only the last segment is created as the new GameObject's name. Verify the parent hierarchy path exists and that a scene is currently open in the editor.

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

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.