assets-prefab-instantiate

Instantiates a Unity prefab asset into the active scene with transform settings.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-prefab-instantiate-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-prefab-instantiate
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/assets-prefab-instantiate
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-prefab-instantiate-fermisloth

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 slow and repetitive, especially when building or modifying scenes programmatically. This Skill lets you instantiate any prefab asset directly into the active scene with a single command, specifying its position, rotation, and scale. ## Core Features & Use Cases - Prefab Instantiation: Place any prefab asset into the current active scene by providing its asset path and target GameObject path. - Transform Control: Set position, rotation (Euler angles), and scale in world or local space at instantiation time. - Use Case: While building an epidemic simulation scene, you need to spawn an agent prefab at a specific location. Provide the prefab path and coordinates, and the GameObject appears in the scene hierarchy immediately, returning a reference you can use for further edits. ## Quick Start Ask the AI to instantiate the prefab at Assets/Prefabs/Agent.prefab into the active scene at position (0, 0, 0) using the assets-prefab-instantiate tool.

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 prefabAssetPath and gameObjectPath as JSON input. You can also supply position, rotation, and scale to control the spawned object's transform.

How do I find the prefab asset path before instantiating it?

Use the assets-find tool to search for prefab assets in the Unity project, as recommended in the Skill description. It returns asset paths starting with Assets/ that you can pass directly as prefabAssetPath.

Can I set position and rotation when instantiating a Unity prefab?

Yes, the tool accepts optional position, rotation, and scale parameters as Vector3 objects with x, y, and z values. Rotation is specified in Euler angles in degrees, and isLocalSpace controls whether the transform is world or local space.

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

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill covers detailed installation steps.

What does the prefab instantiate tool return after execution?

It returns a GameObjectRef containing the instanceID, hierarchy path, name, and asset information of the instantiated GameObject. You can use this reference for follow-up operations on the spawned object.