Skip to main content
Glama

assets-prefab-create

Create Unity prefabs from GameObjects in active scenes to reuse assets and maintain consistency across projects. Specify save paths and optionally replace original objects.

Instructions

Create a prefab from a GameObject in the current active scene. The prefab will be saved in the project assets at the specified path. Use 'gameobject-find' tool to find the target GameObject first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefabAssetPathYesSave path for the new prefab. Example: "Assets/Prefabs/MyPrefab.prefab"
gameObjectRefYesSource GameObject reference. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} or {"path":"hierarchy/path"}
replaceGameObjectWithPrefabNoIf true, the prefab will replace the GameObject in the scene.true

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server